From 7f4d788ef4ec3ce602efcd143098ff165ce23c7b Mon Sep 17 00:00:00 2001
From: Benoit Lavenier <benoit.lavenier@e-is.pro>
Date: Fri, 3 Jan 2020 22:45:56 +0100
Subject: [PATCH] [fix] Release: remove plugins JS+CSS files from the web
 artifact

---
 gulpfile.js | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/gulpfile.js b/gulpfile.js
index 9305f487..83472df8 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -565,12 +565,16 @@ function webCleanUnusedFiles() {
   const wwwPath = './dist/web/www';
 
   return es.concat(
-    // Clean JS
+    // Clean core JS + CSS
     gulp.src(wwwPath + '/js/**/*.js', {read: false})
       .pipe(clean()),
-
-    // Clean css
     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())
   );
 }
@@ -585,6 +589,7 @@ function webCleanUnusedDirectories() {
       wwwPath + '/css',
       wwwPath + '/templates',
       wwwPath + '/js',
+      wwwPath + '/plugins',
       wwwPath + '/dist',
       wwwPath + '/lib/*',
       '!' + wwwPath + '/lib/ionic',
-- 
GitLab