mirror of
https://github.com/stisla/stisla.git
synced 2025-09-03 05:02:41 +02:00
removed Gulp minify task
This commit is contained in:
20
gulpfile.js
20
gulpfile.js
@@ -125,23 +125,6 @@ function folder() {
|
|||||||
.pipe(dest('./assets/img'));
|
.pipe(dest('./assets/img'));
|
||||||
}
|
}
|
||||||
|
|
||||||
function minify(){
|
|
||||||
return src(sassDir)
|
|
||||||
.pipe(plumber())
|
|
||||||
.pipe(sass({
|
|
||||||
errorLogToConsole: true
|
|
||||||
}))
|
|
||||||
.on('error', console.error.bind( console ))
|
|
||||||
.pipe(rename({
|
|
||||||
suffix: '.min'
|
|
||||||
}))
|
|
||||||
.pipe(postcss([autoprefixer(), cssnano()]))
|
|
||||||
.pipe(dest(cssDir))
|
|
||||||
.pipe(notify({
|
|
||||||
message: 'Minify <%= file.relative %> berhasil bos'
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
|
|
||||||
function image() {
|
function image() {
|
||||||
return src(imgDir + '/**/*.*')
|
return src(imgDir + '/**/*.*')
|
||||||
.pipe(plumber())
|
.pipe(plumber())
|
||||||
@@ -212,9 +195,6 @@ exports.folder = folder;
|
|||||||
// Minify images
|
// Minify images
|
||||||
exports.image = image;
|
exports.image = image;
|
||||||
|
|
||||||
// Run this command for styling OPs
|
|
||||||
exports.minify = minify;
|
|
||||||
|
|
||||||
// Compile SCSS
|
// Compile SCSS
|
||||||
exports.scss = compile_scss;
|
exports.scss = compile_scss;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user