ZachJW34/nx-plus

How do you get source maps to work?

gregveres opened this issue · 0 comments

I have realized that I no longer have source maps after converting to nx.

My setup is like this:

  • apps
    • app1
    • app2
  • libs
    • lib1
    • lib 2

I have tried adding 'devtool': 'source-map' to my configure-webpack.js file in the apps and the libs, but that doesn't do it.
I am getting source maps for the .vue files but not for the TS files.

Here is an example of an app configure-webpack.js

module.exports = {
  devtool: 'source-map',
  plugins: [
    new WebpackAssetsManifest({
      output: 'asset-manifest.json'
    })
  ]
}

and for the libraries:

module.exports = {
  devtool: 'source-map'
}

I thought maybe I needed to put "devtool": "source-map" in my project.json file for each project but then I get an error that it isn't part of the schema.

How are you guys getting source maps?