Skip to content

Commit

Permalink
node-sass replaced with dart-sass
Browse files Browse the repository at this point in the history
  • Loading branch information
benabraham committed May 19, 2020
1 parent a212dfb commit 1111818
Show file tree
Hide file tree
Showing 6 changed files with 752 additions and 685 deletions.
4 changes: 2 additions & 2 deletions gulpfile.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const { series, parallel, src, dest, watch } = require("gulp"),
{ readFileSync } = require("fs"),
del = require("del"),
sass = require("gulp-sass"),
sass = require("gulp-dart-sass"),
sourcemaps = require("gulp-sourcemaps"),
postcss = require("gulp-postcss"),
autoprefixer = require("autoprefixer"),
Expand Down Expand Up @@ -54,7 +54,7 @@ const twigCompile = () => {
const sassCompile = () => {
return src("src/scss/index.scss") // this is the source of for compilation
.pipe(sourcemaps.init()) // initalizes a sourcemap
.pipe(sass().on("error", sass.logError)) // compile SCSS to CSS and also tell us about a problem if happens
.pipe(sass.sync().on("error", sass.logError)) // compile SCSS to CSS and also tell us about a problem if happens
.pipe(
postcss([
autoprefixer, // automatically adds vendor prefixes if needed
Expand Down
Loading

0 comments on commit 1111818

Please sign in to comment.