Why is devtool different in gen-webpack.config.js and gen-webpack.node.config.js #13914
Unanswered
meisenbarth-work
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey @meisenbarth-work, the backend bundling is a relatively recent feature (see #12412), while the frontend bundling has been there since the beginning of time. I assume it was just always there and noone ever actually cared until now. It's probably reasonable to adjust this to omit source maps on production builds. Can you create a new issue to track this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When packing our application for electron I realized the devtool for the backend and the frontend is different. Is there a reason the source maps are only omitted for the backend application? Should I keep the source maps for the frontend or could I remove them in my webpack.config.js?
devtool: mode === 'development' ? 'source-map' : false, <-> devtool: 'source-map',
Beta Was this translation helpful? Give feedback.
All reactions