How do I disable minification when running "build" command in sveltekit?

Viewed 1665

I am deploying sveltekit to a dfinity container and I need to disable minification to debug.

I have to build a static version to deploy it with npm run build -- is there a vite option to disable minification?

I've tried this: svelte.config.js but it doesn't do anything:

        vite: {
            resolve: {
                alias: {
                    $components: path.resolve('./src/components'),
                    $stores: path.resolve('./src/stores'),
                    $api: path.resolve('./src/api')
                }
            },
            build: {
                minify: false
            }
        }
0 Answers
Related