|
@@ -23,16 +23,10 @@ const css = {
|
|
|
},
|
|
|
|
|
|
buildCSS (...params) {
|
|
|
- return gulp.series(
|
|
|
- () => exec(`yarn css:build`, {}),
|
|
|
- css._optimizeCSSForRelease
|
|
|
- )(...params)
|
|
|
- },
|
|
|
-
|
|
|
- _optimizeCSSForRelease () {
|
|
|
- return gulp.src(path.join(outputPath, 'css', 'style.css'))
|
|
|
- .pipe(cleanCSS())
|
|
|
- .pipe(gulp.dest(path.join(outputPath, 'css')))
|
|
|
+ return cp.spawn(`yarn css:build`, {
|
|
|
+ shell: true,
|
|
|
+ stdio: 'inherit'
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
|