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

Needed for CSP, and also helps with redusing JS size ;)
This commit is contained in:
Eliot Berriot 2019-07-10 14:38:56 +02:00
parent 039856688f
commit ab73752f55
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
3 changed files with 6 additions and 7 deletions

View File

@ -10,6 +10,8 @@ Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
el: '#app',
template: '<EmbedFrame/>',
render (h) {
return h('EmbedFrame')
},
components: { EmbedFrame }
})

View File

@ -122,7 +122,9 @@ store.dispatch('instance/fetchFrontSettings').finally(() => {
el: '#app',
router,
store,
template: '<App/>',
render (h) {
return h('App')
},
components: { App }
})

View File

@ -30,11 +30,6 @@ module.exports = {
},
configureWebpack: {
plugins: plugins,
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js'
}
}
},
devServer: {
disableHostCheck: true,