summaryrefslogtreecommitdiff
path: root/vue.config.js
diff options
context:
space:
mode:
authorDerick Montague <derick.montague@ibm.com>2020-07-15 05:20:29 +0300
committerDerick Montague <derick.montague@ibm.com>2020-10-23 00:13:55 +0300
commit579cbdf4646fbdf8db2419ee046d812189894afc (patch)
treed94a9f2051a7200573873a955319ff39c9a2deb6 /vue.config.js
parentdd50d30d03aee5976b2085f4edec5e5b729d29f9 (diff)
downloadwebui-vue-579cbdf4646fbdf8db2419ee046d812189894afc.tar.xz
Resolve Content-Security-Policy error
In Firefox there was an no unsafe eval error which was caused when users had the vue dev tools extenstion installed and enabled. The other issue was the loading of a resrouce at inline (style-src) which was caused by the SVG icons coming from the Carbon icons vue library. - Updated the Carbon icons to the latest version to resolve the CSP issue. - Remove chainwebpack option only used for prefecth as this is not needed. Originally this was an issue when using code splitting. Changing how we import views for routes and creating a single bundle removes the need for this option. - Update how fill color is applied to StatusIcon component. The Carbon icons update results in adding the fill property to the svg container does not cascade resulting in all icons rendering as their default fill color. GitHub Issue: https://github.com/openbmc/webui-vue/issues/32 Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I4846f80c993c129d5e88fceda13d53fab51d7c8a
Diffstat (limited to 'vue.config.js')
-rw-r--r--vue.config.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/vue.config.js b/vue.config.js
index ca8e9f08..6cb0df7e 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -85,12 +85,6 @@ module.exports = {
);
}
},
- chainWebpack: config => {
- if (process.env.NODE_ENV === 'production') {
- config.plugins.delete('prefetch');
- config.plugins.delete('preload');
- }
- },
pluginOptions: {
i18n: {
localeDir: 'locales',