Categories
Vue Answers

How to disable source maps in production for a Vue.js app?

Spread the love

Sometimes, we want to disable source maps in production for a Vue.js app.

In this article, we’ll look at how to disable source maps in production for a Vue.js app.

How to disable source maps in production for a Vue.js app?

To disable source maps in production for a Vue.js app, we can set the productionSourceMap option to false in vue.config.js.

For instance, we write

module.exports = {
  productionSourceMap: false,
};

to set productionSourceMap to false.

Conclusion

To disable source maps in production for a Vue.js app, we can set the productionSourceMap option to false in vue.config.js.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *