Disable index hashing in development mode
When in Dev server mode, we the webpack dev server isn't capable of
understanding wildcards, and that index.html, and index.<hash>.html are
the same thing.
Disable the index file hashing when in dev mode.
Tested:
Launched dev server without bmc present. Observed UI could be loaded
correctly.
Change-Id: Ie2d3bfe4af0117681cec8c92f93d7e278b2071f2
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/vue.config.js b/vue.config.js
index 01d48b9..c1dd2ec 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -70,10 +70,12 @@
name: '[name].[contenthash:8].[ext]',
});
config.plugins.delete('preload');
- config.plugin('html').tap((options) => {
- options[0].filename = 'index.[hash:8].html';
- return options;
- });
+ if (process.env.NODE_ENV === 'production') {
+ config.plugin('html').tap((options) => {
+ options[0].filename = 'index.[hash:8].html';
+ return options;
+ });
+ }
},
configureWebpack: (config) => {
config.plugins.push(