Commit 26cb12b2 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Skip js vendor deletion, when running 'gulp webExtBuild' without the --release option

parent 2e55e7ad
......@@ -637,12 +637,12 @@ function webCleanUnusedDirectories() {
let patterns = [
wwwPath + '/templates',
wwwPath + '/js',
wwwPath + '/plugins'
];
if (enableUglify) {
patterns = patterns.concat([
wwwPath + '/js',
wwwPath + '/css',
wwwPath + '/dist',
wwwPath + '/lib/*',
......@@ -659,12 +659,14 @@ function webCleanUnusedDirectories() {
}
else {
patterns = patterns.concat([
wwwPath + '/js/*',
'!' + wwwPath + '/js/vendor',
wwwPath + '/dist_css',
wwwPath + '/dist_js'
]);
}
return gulp.src(patterns, {read: false})
return gulp.src(patterns, {read: false, allowEmpty: true})
//.pipe(debug({title: 'deleting '}))
.pipe(clean());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment