Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you get source maps to work? #266

Open
gregveres opened this issue Jul 13, 2022 · 0 comments
Open

How do you get source maps to work? #266

gregveres opened this issue Jul 13, 2022 · 0 comments

Comments

@gregveres
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant