Skip to content
Snippets Groups Projects
Commit 7f4d788e authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Release: remove plugins JS+CSS files from the web artifact

parent d95ed0a2
No related branches found
No related tags found
No related merge requests found
Pipeline #7588 failed
...@@ -565,12 +565,16 @@ function webCleanUnusedFiles() { ...@@ -565,12 +565,16 @@ function webCleanUnusedFiles() {
const wwwPath = './dist/web/www'; const wwwPath = './dist/web/www';
return es.concat( return es.concat(
// Clean JS // Clean core JS + CSS
gulp.src(wwwPath + '/js/**/*.js', {read: false}) gulp.src(wwwPath + '/js/**/*.js', {read: false})
.pipe(clean()), .pipe(clean()),
// Clean css
gulp.src(wwwPath + '/css/**/*.css', {read: false}) gulp.src(wwwPath + '/css/**/*.css', {read: false})
.pipe(clean()),
// Clean plugins JS + CSS
gulp.src(wwwPath + '/plugins/**/*.js', {read: false})
.pipe(clean()),
gulp.src(wwwPath + '/plugins/**/*.css', {read: false})
.pipe(clean()) .pipe(clean())
); );
} }
...@@ -585,6 +589,7 @@ function webCleanUnusedDirectories() { ...@@ -585,6 +589,7 @@ function webCleanUnusedDirectories() {
wwwPath + '/css', wwwPath + '/css',
wwwPath + '/templates', wwwPath + '/templates',
wwwPath + '/js', wwwPath + '/js',
wwwPath + '/plugins',
wwwPath + '/dist', wwwPath + '/dist',
wwwPath + '/lib/*', wwwPath + '/lib/*',
'!' + wwwPath + '/lib/ionic', '!' + wwwPath + '/lib/ionic',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment