I found the solution using chainWebpack. Add this to the build section of your quasar.conf.js:
build: {
chainWebpack (chain) {
chain.output.globalObject('this')
}
}
I found the solution using chainWebpack. Add this to the build section of your quasar.conf.js:
build: {
chainWebpack (chain) {
chain.output.globalObject('this')
}
}
Can someone recommend a content security policy setting that will work with a quasar electron app? I currently have
session.defaultSession.webRequest.onHeadersReceived((details, callback) => {
callback({ responseHeaders: Object.assign({
'Content-Security-Policy': [ 'default-src \'self\'' ]
}, details.responseHeaders) })
})
but it keeps the app from running at all because it refuses to run inline scripts. I believe the scripts are being generated by Vue since I don’t have any external content.
I found the solution using chainWebpack. Add this to the build section of your quasar.conf.js:
build: {
chainWebpack (chain) {
chain.output.globalObject('this')
}
}
I am trying to implement pdfvuer (which is based on PDF JS) in a project. I keep getting an error in the console: ReferenceError: window is not defined. Based on what I’ve read, this seems to be the solution:
Edit (or create) vue.config.js and change webpack configuration there:
module.exports = { configureWebpack: config => { config.output.globalObject = "this"; } }
How do I impliment this in quasar.conf.js?