mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-02 12:34:46 +00:00
Process CSS with cssnano in development build
This commit is contained in:
parent
97c98e170a
commit
c9095445cb
1 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ gulp.task('styles:css', function() {
|
|||
});
|
||||
|
||||
return gulp.src(sources, {base: '.'})
|
||||
.pipe(config.isProduction ? cssnano(cssnanoConfig) : gutil.noop())
|
||||
.pipe(cssnano(cssnanoConfig))
|
||||
.pipe(autoprefixer(autoprefixerConfig))
|
||||
.pipe(renameSrcToDest())
|
||||
.pipe(size({ title: 'Vendor CSS' }))
|
||||
|
|
@ -66,7 +66,7 @@ gulp.task('styles:sass', function () {
|
|||
includePaths: includePaths,
|
||||
outputStyle: 'expanded'
|
||||
}).on('error', sass.logError))
|
||||
.pipe(config.isProduction ? cssnano(cssnanoConfig) : gutil.noop())
|
||||
.pipe(cssnano(cssnanoConfig))
|
||||
.pipe(autoprefixer(autoprefixerConfig))
|
||||
.pipe(size({ title: 'Wagtail CSS' }))
|
||||
.pipe(config.isProduction ? gutil.noop() : sourcemaps.write())
|
||||
|
|
|
|||
Loading…
Reference in a new issue