Skip to content

Commit

Permalink
Fix error connected to vue devtools in production mode
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick11514 committed Sep 27, 2024
1 parent 4e11078 commit 7856558
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export default {
replace({
'process.env.NODE_ENV': JSON.stringify(production ? 'production' : 'development'),
'process.env.VUE_ENV': JSON.stringify('browser'),
// fixes issue, when vue in production mode need to know if devtools are enabled or not
// fixing: Uncaught ReferenceError: __VUE_PROD_DEVTOOLS__ is not defined
'__VUE_PROD_DEVTOOLS__': JSON.stringify(false),
}),
typescript({
abortOnError: production,
Expand Down

0 comments on commit 7856558

Please sign in to comment.