Nuxt.js: I want to run ‘nuxt generate’ without SourceMap,but I don`t know how to config

Created on 8 Sep 2017  Â·  4Comments  Â·  Source: nuxt/nuxt.js

This question is available on Nuxt.js community (#c1439)

Most helpful comment

your question is about webpack, check his devtool option: https://webpack.js.org/configuration/devtool/#devtool

an example with the Nuxt config to enable sourcemap for dev only:

module.exports = {
  build: {
    extend (config, { dev }) {
      if (dev) {
        config.devtool = (dev ? 'eval-source-map' : false)

All 4 comments

your question is about webpack, check his devtool option: https://webpack.js.org/configuration/devtool/#devtool

an example with the Nuxt config to enable sourcemap for dev only:

module.exports = {
  build: {
    extend (config, { dev }) {
      if (dev) {
        config.devtool = (dev ? 'eval-source-map' : false)

Thanks

It still generates js sourcemaps

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shyamchandranmec picture shyamchandranmec  Â·  3Comments

bimohxh picture bimohxh  Â·  3Comments

vadimsg picture vadimsg  Â·  3Comments

gary149 picture gary149  Â·  3Comments

uptownhr picture uptownhr  Â·  3Comments