From 1090843cc974e27fca040315bf71ea1b1d073128 Mon Sep 17 00:00:00 2001 From: Tiago Schenkel Date: Sun, 30 Sep 2018 13:46:54 +0200 Subject: [PATCH] update webpack settings to generate hashed entry files for karma --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 439ab5d..e078d7c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -9,7 +9,7 @@ module.exports = env => { let mode = env.production ? "production" : "development"; let tsconfig = !env.karma ? "tsconfig.json" : "tsconfig.test.json"; let output = env.production ? "dist" : "dist-test"; - let filename = env.production ? "robotlegs-phaser-ce-signalcommandmap.min.js" : "robotlegs-phaser-ce-signalcommandmap.js"; + let filename = env.karma ? "[name].[hash].js" : (env.production ? "robotlegs-phaser-ce-signalcommandmap.min.js" : "robotlegs-phaser-ce-signalcommandmap.js"); return { mode: mode,