[Q2 Vite] drop console config in build options #13890
Answered
by
metalsadman
ssuess
asked this question in
CLI - PWA mode
-
Following the quasar and vite docs I have this set:
but my builds are still showing console.log statements. Am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
metalsadman
Jul 6, 2022
Replies: 2 comments 8 replies
-
have also tried:
which also does not work for me. :/ |
Beta Was this translation helpful? Give feedback.
0 replies
-
try it inside so something like: // quasar.conf.js
...
build: {
...
extendViteConf(conf) {
conf.esbuild = {
drop: ['console', 'debugger']
}
}
... |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
ssuess
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
try it inside
extendViteConf
, as those property you are setting aren't found in the rootbuild
prop found here https://quasar.dev/quasar-cli-vite/quasar-config-js#buildso something like:
https://vitejs.dev/config/#esbuild