In nuxt, where to specify compile-time flags?
With a Vue+Vite app, you can specify some compile-time flags like below.
For instance, I never use Options API, and apparently disabling it saves ~10kb off your final build.
How can I do the same in Nuxt?
For instance, I never use Options API, and apparently disabling it saves ~10kb off your final build.
How can I do the same in Nuxt?
import { defineConfig } from 'vite'
export default defineConfig({
define: {
__VUE_OPTIONS_API__: 'false'
}
})