ZachJW34 / nx-plus

Collection of Nx Community Plugins
MIT License
302 stars 51 forks source link

How do you get source maps to work? #266

Open gregveres opened 2 years ago

gregveres commented 2 years ago

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

My setup is like this:

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?