Skip to content

[Q2 Vite] drop console config in build options #13890

Discussion options

You must be logged in to vote

try it inside extendViteConf, as those property you are setting aren't found in the root build prop found here https://quasar.dev/quasar-cli-vite/quasar-config-js#build

so something like:

// quasar.conf.js
...
  build: {
    ...
    extendViteConf(conf) {
      conf.esbuild = {
        drop: ['console', 'debugger']
      }
    }
...

https://vitejs.dev/config/#esbuild

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@metalsadman
Comment options

@ssuess
Comment options

@ssuess
Comment options

@ssuess
Comment options

@snowwolfjay
Comment options

Answer selected by ssuess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants