CSS, SASS, LESS bundle for gulp-flow.
CSS, SASS, LESS bundle for gulp-flow.
npm install --save-dev gulp-flow-css
or
yarn add --dev gulp-flow-css
By default this bundle is preconfigured in cfg.css
.
This module adds some gp
(Gulp plugins):
And pipes
:
And push ignored files in cfg.files
.
See the source code for more details.
A common use case:
'use strict';
require('gulp-flow-css');
// build: CSS
gulp.task('build.css', function() {
return gulp.src(cfg.css.src)
.pipe(gp.newer(cfg.publicCssDir))
// .pipe(gp.using())
.pipe(gp.ifElse(
envList.NODE_ENV === 'production',
pipes.prodCssBundle,
pipes.devCssBundle
))
.pipe(gulp.dest(cfg.publicCssDir))
;
});
And run your tasks: APP_ENV=dev gulp
MIT (c) 2016, Nicolas Tallefourtane.
Nicolas Talle |
![]() |