gulp-query-scss-images
SCSS + sprites and assets
Uses gulp-css-spritus and gulp-css-assetus for images
Uses cssnano with autoprefixer for optimization
- This plugin provides automatic source maps, compiling Sass into CSS, autoprefixing and minification.
- Write your CSS rules without vendor prefixes — autoprefixer will do everything itself.
- Make sprites easily
- Compress images directly in the
.scss
npm install gulp-query gulp-query-scss-images
Example
Paste the code into your gulpfile.js
and configure it
let build = scss = ;;
And feel the freedom
gulp
gulp --production // For production
gulp watch // Watching change
gulp scss // Only for scss
gulp scss:app // Only for app.scss
gulp scss:admin scss:main watch // Watching change only for admin.scss and main.scss
...
Options