mirror of
https://github.com/papercss/papercss
synced 2024-06-23 16:00:10 +02:00
Updated gulpfile to build css for each component in dist/components/
This commit is contained in:
parent
5333ca8cbe
commit
60884fc432
|
@ -30,5 +30,12 @@ gulp.task('minify-css', () => {
|
|||
.pipe(gulp.dest('dist'));
|
||||
});
|
||||
|
||||
gulp.task('components', () => {
|
||||
gulp.src('src/*.less')
|
||||
.pipe(less())
|
||||
.pipe(cleanCSS({format: 'beautify'}))
|
||||
.pipe(gulp.dest('dist/components'));
|
||||
});
|
||||
|
||||
gulp.task('default', ['less', 'webserver', 'watch']);
|
||||
gulp.task('build', ['less', 'minify-css'])
|
||||
gulp.task('build', ['components', 'less', 'minify-css']);
|
||||
|
|
Loading…
Reference in a new issue