|
|
@ -37,13 +37,13 @@ function bsInit__remote(done) { |
|
|
|
rewriteRules: [ |
|
|
|
rewriteRules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
match: BSREWRITE.Css.Match, |
|
|
|
match: BSREWRITE.Css.Match, |
|
|
|
replace: BSREWRITE.Css.Replace |
|
|
|
replace: BSREWRITE.Css.Replace, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
match: BSREWRITE.Js.Match, |
|
|
|
match: BSREWRITE.Js.Match, |
|
|
|
replace: BSREWRITE.Js.Replace |
|
|
|
replace: BSREWRITE.Js.Replace, |
|
|
|
} |
|
|
|
}, |
|
|
|
] |
|
|
|
], |
|
|
|
}); |
|
|
|
}); |
|
|
|
done(); |
|
|
|
done(); |
|
|
|
} |
|
|
|
} |
|
|
@ -62,7 +62,8 @@ function drush() { |
|
|
|
// Compile CSS
|
|
|
|
// Compile CSS
|
|
|
|
function styles() { |
|
|
|
function styles() { |
|
|
|
'use strict'; |
|
|
|
'use strict'; |
|
|
|
return gulp |
|
|
|
return ( |
|
|
|
|
|
|
|
gulp |
|
|
|
//.src(PATHS.Scss.Dir + '/**/*.scss')
|
|
|
|
//.src(PATHS.Scss.Dir + '/**/*.scss')
|
|
|
|
.src('./css/sass/**/*.scss') |
|
|
|
.src('./css/sass/**/*.scss') |
|
|
|
.pipe(plumber()) |
|
|
|
.pipe(plumber()) |
|
|
@ -70,15 +71,16 @@ function styles() { |
|
|
|
.pipe( |
|
|
|
.pipe( |
|
|
|
sass |
|
|
|
sass |
|
|
|
.sync({ |
|
|
|
.sync({ |
|
|
|
includePaths: PATHS.Scss.Libraries |
|
|
|
includePaths: PATHS.Scss.Libraries, |
|
|
|
}) |
|
|
|
}) |
|
|
|
.on('error', sass.logError) |
|
|
|
.on('error', sass.logError), |
|
|
|
) |
|
|
|
) |
|
|
|
//.pipe(cleanCSS())
|
|
|
|
.pipe(cleanCSS()) |
|
|
|
.pipe(sourcemaps.write('.')) |
|
|
|
.pipe(sourcemaps.write('.')) |
|
|
|
//.pipe(gulp.dest(PATHS.Css.Dir))
|
|
|
|
//.pipe(gulp.dest(PATHS.Css.Dir))
|
|
|
|
.pipe(gulp.dest('./css')) |
|
|
|
.pipe(gulp.dest('./css')) |
|
|
|
.pipe(browsersync.stream()); |
|
|
|
.pipe(browsersync.stream()) |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Watch Files
|
|
|
|
// Watch Files
|
|
|
@ -93,11 +95,11 @@ function watchFiles() { |
|
|
|
const build = gulp.parallel(styles); |
|
|
|
const build = gulp.parallel(styles); |
|
|
|
const watch_remote = gulp.series( |
|
|
|
const watch_remote = gulp.series( |
|
|
|
styles, |
|
|
|
styles, |
|
|
|
gulp.parallel(watchFiles, bsInit__remote) |
|
|
|
gulp.parallel(watchFiles, bsInit__remote), |
|
|
|
); |
|
|
|
); |
|
|
|
const watch_local = gulp.series( |
|
|
|
const watch_local = gulp.series( |
|
|
|
styles, |
|
|
|
styles, |
|
|
|
gulp.parallel(watchFiles, bsInit__local) |
|
|
|
gulp.parallel(watchFiles, bsInit__local), |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Export tasks
|
|
|
|
// Export tasks
|
|
|
|