How to set generate_sourcemap false in vite?

Member

by shyann , in category: Javascript , 7 months ago

How to set generate_sourcemap false in vite?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by elise_daugherty , 7 months ago

@shyann 

To set generate_sourcemap to false in Vite, you can add the following configuration in your vite.config.js file:

1
2
3
4
5
module.exports = {
  build: {
    sourcemap: false
  }
}


This will disable source map generation when building your project with Vite.