Skip to content

Commit

Permalink
chore: get rid of gulp-sass/node-sass/node-gyp (#1560)
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Apr 22, 2019
1 parent d5963b8 commit 3fd16c4
Show file tree
Hide file tree
Showing 3 changed files with 217 additions and 595 deletions.
7 changes: 5 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const stylelint = require('gulp-stylelint')
const babel = require('rollup-plugin-babel')
const json = require('rollup-plugin-json')
const merge = require('merge2')
const sass = require('sass')
const browserSync = require('browser-sync').create()
const packageJson = require('./package.json')
const execute = require('./utils/execute')
Expand Down Expand Up @@ -84,8 +85,10 @@ if (typeof window !== 'undefined' && window.Sweetalert2){\
})

gulp.task('build:styles', () => {
return gulp.src('src/sweetalert2.scss')
.pipe($.sass())
const result = sass.renderSync({ file: 'src/sweetalert2.scss' })
fs.writeFileSync('dist/sweetalert2.css', result.css)

return gulp.src('dist/sweetalert2.css')
.pipe($.autoprefixer())
.pipe(gulp.dest('dist'))
.pipe($.if(!skipMinification, $.cleanCss()))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"gulp-noop": "^1.0.0",
"gulp-rename": "^1.2.2",
"gulp-rollup": "^2.16.2",
"gulp-sass": "^4.0.2",
"gulp-stylelint": "^9.0.0",
"gulp-tslint": "^8.1.2",
"gulp-typescript": "^5.0.0",
Expand All @@ -52,6 +51,7 @@
"rollup": "^1.1.2",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-json": "^4.0.0",
"sass": "^1.19.0",
"sinon": "^7.2.3",
"stylelint": "^10.0.0",
"stylelint-config-standard": "^18.2.0",
Expand Down

0 comments on commit 3fd16c4

Please sign in to comment.