How to set generate_sourcemap false in vite?

Member

by shyann , in category: Javascript , a year ago

How to set generate_sourcemap false in vite?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by elise_daugherty , a year 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.

Related Threads:

How to set multiple output when build lib with vite?
How to update vite 3 project to vite 4?
How to parse false values in mustache?
How to force vite clearing cache in vue.js 3?
How to install tailwind in vue.js 3 + vite?
How to add typescript to vue 3 and vite project?