gulp-postcss-nimedev
Process css files with PostCSS and copy the resulting file in a new folder
Installation
$ npm install gulp-postcss-nimedev
Usage
In gulpfile.js
// Require the moduleconst postcssTask = // Set options object for postcssTask functionconst options = src: 'src/styles/style.css' dest: 'dist/assets/css' outName: basename: 'style' extname: '.css' minify: true // Create a gulp task to process css files from options.src pathgulp
Note: src and dest in options objects follow the same rules of gulp.src() and gulp.dest() arguments
Option to process file one by one without merge:
const options = src: 'src/styles/style.css' { return filebase } outName: extname: '.min.css' minify: true