gulp-query-styles
Plugin for gulp-query
Uses cssnano with autoprefixer for optimization
This plugin provides automatic source maps, copy, combine and rename CSS, autoprefixing and minification. Write your CSS rules without vendor prefixes — autoprefixer will do everything itself
npm install gulp-query gulp-query-styles
Example
Paste the code into your gulpfile.js
and configure it
let build = styles = ;;
And feel the freedom
gulp
gulp --production // For production
gulp watch // Watching change
gulp styles // Only for styles
gulp styles:onetwo
gulp styles:big watch
...
Options