antwarjs / antwar

A static site generator built with React and Webpack.
https://antwar.js.org/
MIT License
460 stars 35 forks source link

How to specify devtool for built JavaScript? #123

Closed simon04 closed 7 years ago

simon04 commented 7 years ago

For debugging (such as https://github.com/webpack/webpack.js.org/issues/919) it would be helpful to get the source maps built via devtool. How can this be accomplished?

bebraw commented 7 years ago

Only interactive bits can receive source maps. You would have to use interactive config (env === interactive) to so that it sets devtool to the value you want. Source maps have been disabled on the site as the build is pretty slow even without them.

bebraw commented 7 years ago

I guess it's time to close this. There's not much I can do on Antwar side. More of a webpack problem.