-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
No sourcemaps when using custom templates #1219
Comments
Did you find any solution for this? I don't know what can be improved here. Lines 335 to 350 in 8b7255f
Any ideas? |
Hmm, seems like it's not really possible as per: nodejs/node#8042 Will have a think... |
You could try the following: Create an
And point the html_webpack_plugin to use it:
This might even speed up your compilation |
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
Expected behaviour
When using a custom template that throws an exception,
html-webpack-plugin
should report the relevant file and line number in the stack trace.Current behaviour
It gives a stack trace like the following:
This is even after adding:
import 'source-map-support/register';
...to my
server.js
template file.Environment
Config
Copy the minimal
webpack.config.js
to produce this issue:Copy your template file if it is part of this issue:
server/index.js
client/index.js
client/app.js
Relevant Links
Additional context
My team uses html-webpack-plugin to generate static HTML pages using React, which then get re-hydrated client-side. Admittedly this isn't too well-defined a use case for HTMLWP but it's one that's particularly interesting within the context of the data visualisation/newsmedia communities.
The text was updated successfully, but these errors were encountered: