# How to disable generating the code source maps on production build?

**URL:** <https://forum.ionicframework.com/t/how-to-disable-generating-the-code-source-maps-on-production-build/208127>\
**Category:** Ionic Vue\
**Created:** [April 14, 2021, 9:59am UTC](https://forum.ionicframework.com/t/how-to-disable-generating-the-code-source-maps-on-production-build/208127 "2021-04-14T09:59:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartdoedens](https://avatars.discourse-cdn.com/v4/letter/b/7ab992/32.png) [@bartdoedens](https://forum.ionicframework.com/u/bartdoedens)\
**Post date:** [April 14, 2021, 9:59am UTC](https://forum.ionicframework.com/t/how-to-disable-generating-the-code-source-maps-on-production-build/208127/1 "2021-04-14T09:59:42Z")

</div>

How can I disable the generation of my source maps (components, router, etc) in the production build. When I run `ionic build` these files are generated.

In `Vue CLI` I could do this by setting the `productionSourceMap: false` in `vue.config.js`. Does Ionic has such an option?

---

<div class="post-metadata">

**Author:** ![ldebeasi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ldebeasi/32/147501_2.png) [@ldebeasi](https://forum.ionicframework.com/u/ldebeasi)\
**Post date:** [April 14, 2021, 3:22pm UTC](https://forum.ionicframework.com/t/how-to-disable-generating-the-code-source-maps-on-production-build/208127/2 "2021-04-14T15:22:01Z")

</div>

Doing `productionSourceMap: false` in your `vue.config.js` file should work if you are using an Ionic Vue starter app.

---

<div class="post-metadata">

**Author:** ![mirko77](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mirko77/32/137216_2.png) [@mirko77](https://forum.ionicframework.com/u/mirko77)\
**Post date:** [April 27, 2021, 12:35pm UTC](https://forum.ionicframework.com/t/how-to-disable-generating-the-code-source-maps-on-production-build/208127/3 "2021-04-27T12:35:23Z")

</div>

@ldebeasi I do not have any `vue.config.js` on a new Ionic Vue app, am I missing something?

---

<div class="post-metadata">

**Author:** ![ldebeasi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ldebeasi/32/147501_2.png) [@ldebeasi](https://forum.ionicframework.com/u/ldebeasi)\
**Post date:** [April 27, 2021, 12:47pm UTC](https://forum.ionicframework.com/t/how-to-disable-generating-the-code-source-maps-on-production-build/208127/4 "2021-04-27T12:47:10Z")

</div>

Ionic starter apps do not ship with a `vue.config.js` file since we do not need to modify any config. You can create a `vue.config.js` file and it should be recognized automatically.

---

<div class="post-metadata">

**Author:** ![mirko77](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mirko77/32/137216_2.png) [@mirko77](https://forum.ionicframework.com/u/mirko77)\
**Post date:** [April 27, 2021, 2:02pm UTC](https://forum.ionicframework.com/t/how-to-disable-generating-the-code-source-maps-on-production-build/208127/5 "2021-04-27T14:02:30Z")

</div>

Thanks. I cannot get any source maps to show on a new project though, as I posted [here](https://forum.ionicframework.com/t/how-to-proper-debug-ionic-vue-in-chrome-and-vs-code/207732/8)
