Skip to content
Snippets Groups Projects
Verified Commit ab73752f authored by Eliot Berriot's avatar Eliot Berriot
Browse files

See #880: removed vue runtime to remove "eval()" calls

Needed for CSP, and also helps with redusing JS size ;)
parent 03985668
Branches
Tags
No related merge requests found
...@@ -10,6 +10,8 @@ Vue.config.productionTip = false ...@@ -10,6 +10,8 @@ Vue.config.productionTip = false
/* eslint-disable no-new */ /* eslint-disable no-new */
new Vue({ new Vue({
el: '#app', el: '#app',
template: '<EmbedFrame/>', render (h) {
return h('EmbedFrame')
},
components: { EmbedFrame } components: { EmbedFrame }
}) })
...@@ -122,7 +122,9 @@ store.dispatch('instance/fetchFrontSettings').finally(() => { ...@@ -122,7 +122,9 @@ store.dispatch('instance/fetchFrontSettings').finally(() => {
el: '#app', el: '#app',
router, router,
store, store,
template: '<App/>', render (h) {
return h('App')
},
components: { App } components: { App }
}) })
......
...@@ -30,11 +30,6 @@ module.exports = { ...@@ -30,11 +30,6 @@ module.exports = {
}, },
configureWebpack: { configureWebpack: {
plugins: plugins, plugins: plugins,
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js'
}
}
}, },
devServer: { devServer: {
disableHostCheck: true, disableHostCheck: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment