From 1f7bcd26cdc0a9ceed358c255addb2a6da20cbf7 Mon Sep 17 00:00:00 2001
From: Cyril L'Orphelin <cyril.lorphelin@cc.in2p3.fr>
Date: Wed, 5 Feb 2020 10:07:27 +0100
Subject: [PATCH] MAJ webpack

---
 tms/webpack.config.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tms/webpack.config.js b/tms/webpack.config.js
index b98850a7..0efbc33f 100644
--- a/tms/webpack.config.js
+++ b/tms/webpack.config.js
@@ -35,6 +35,10 @@ Encore
     // but, you probably want this, unless you're building a single-page app
     .enableSingleRuntimeChunk()
 
+    .cleanupOutputBeforeBuild()
+    .enableSourceMaps(!Encore.isProduction())
+
+
     /*
      * FEATURE CONFIG
      *
@@ -62,7 +66,7 @@ Encore
 
     // uncomment to get integrity="..." attributes on your script & link tags
     // requires WebpackEncoreBundle 1.4 or higher
-    //.enableIntegrityHashes(Encore.isProduction())
+    .enableIntegrityHashes(Encore.isProduction())
 
     // uncomment if you're having problems with a jQuery plugin
     .autoProvidejQuery()
-- 
GitLab