Skip to content

Commit 75dca8c

Browse files
committed
updated packages
raised node version to 22 sass deprecation warnings hidden changed default ports for browsersync unified quotation marks in index.scss
1 parent 607d7c7 commit 75dca8c

File tree

4 files changed

+1033
-797
lines changed

4 files changed

+1033
-797
lines changed

gulpfile.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { readFileSync } from "fs";
33
import { deleteAsync } from "del";
44
import { nunjucksCompile } from "gulp-nunjucks";
55
import gulp from "gulp";
6+
67
const { series, parallel, src, dest, watch } = gulp;
78
import sass from "gulp-dart-sass";
89
import sourcemaps from "gulp-sourcemaps";
@@ -50,7 +51,8 @@ const htmlCompile = () =>
5051
const 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("
8688
const 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

Comments
 (0)