Skip to content
Discussion options

You must be logged in to vote

You can pass the OXC options through the Vite/Rolldown output configuration:

// quasar.config.ts
build: {
  minify: "oxc",

  extendViteConf: () => ({
    build: {
      rolldownOptions: {
        output: {
          minify: {
            compress: {
              dropConsole: true,
            },
          },
        },
      },
    },
  }),
}

build.minify: "oxc" selects OXC. Fine-grained OXC minifier options are passed through build.rolldownOptions.output.minify.

This keeps compression, mangling, and whitespace minification enabled; dropConsole additionally removes calls to console.* from the generated production bundle.

For SSR/SSG, if you want this only in the browser bundle, use the …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@afx919
Comment options

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