mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
1688 PO Automation Project
This commit is contained in:
Vendored
+3
-3
@@ -6,10 +6,10 @@ const plugins = require('gulp-load-plugins')({
|
||||
lazy: true,
|
||||
postRequireTransforms: {
|
||||
print: (plugin) => plugin.default,
|
||||
uglifyEs: (plugin) => plugin.default,
|
||||
if: (plugin) => plugin.default
|
||||
uglifyEs: (plugin) => plugin.default
|
||||
}
|
||||
});
|
||||
const gulpIf = require('gulp-if');
|
||||
|
||||
const onError = (error) => {
|
||||
fancyLog(error);
|
||||
@@ -108,7 +108,7 @@ gulp.task('sourceJs', () => {
|
||||
return gulp.src(pkg.globs.sourceJs)
|
||||
.pipe(plugins.plumber({ errorHandler: onError }))
|
||||
.pipe(plugins.print())
|
||||
.pipe(plugins.if(
|
||||
.pipe(gulpIf(
|
||||
file => !sourceJsKeepNames.includes(path.basename(file.path)),
|
||||
plugins.concat('site.js')
|
||||
))
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
"gulp-concat": "^2.6.1",
|
||||
"gulp-concat-css": "^3.1.0",
|
||||
"gulp-copy": "^4.0.1",
|
||||
"gulp-if": "^3.0.0",
|
||||
"gulp-livereload": "^4.0.2",
|
||||
"gulp-load-plugins": "^2.0.6",
|
||||
"gulp-newer": "^1.3.0",
|
||||
|
||||
Reference in New Issue
Block a user