@@ -3,6 +3,7 @@ import { readFileSync } from "fs";
33import { deleteAsync } from "del" ;
44import { nunjucksCompile } from "gulp-nunjucks" ;
55import gulp from "gulp" ;
6+
67const { series, parallel, src, dest, watch } = gulp ;
78import sass from "gulp-dart-sass" ;
89import sourcemaps from "gulp-sourcemaps" ;
@@ -50,7 +51,8 @@ const htmlCompile = () =>
5051const sassCompile = ( ) =>
5152 src ( "src/scss/index.scss" ) // this is the source for compilation
5253 . pipe ( sourcemaps . init ( ) ) // initalizes a sourcemap
53- . pipe ( sass . sync ( ) . on ( "error" , sass . logError ) ) // compile SCSS to CSS and also tell us about a problem if happens
54+ . pipe ( sass . sync ( { silenceDeprecations : [ 'import' , 'legacy-js-api' ] , quietDeps : true } ) // hide deprecation warnings
55+ . on ( "error" , sass . logError ) ) // compile SCSS to CSS and also tell us about a problem if happens
5456 . pipe (
5557 postcss ( [
5658 autoprefixer , // automatically adds vendor prefixes if needed
@@ -86,10 +88,11 @@ const copyStatic = () => src("src/static/**/*", { encoding: false }).pipe(dest("
8688const startBrowsersync = ( ) =>
8789 browserSyncInstance . init ( {
8890 // initalize Browsersync
89- // port: 8080 , // set different port
91+ port : 3333 , // set different port
9092 // open: false, // don’t open browser
9193 // ghostMode: false, // CLICKS, scrolls & form inputs on any device will not be mirrored to all others
9294 // reloadOnRestart: true, // reload each browser when Browsersync is restarted
95+ ui : { port : 3344 } , // start ui on a different port
9396 server : {
9497 baseDir : "dist" , // serve from this folder
9598 serveStaticOptions : {
0 commit comments