-
Notifications
You must be signed in to change notification settings - Fork 9k
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
fix(webpack): enable SourceMaps in releases #9877
Conversation
TODO:
We decided that only certain build fragments that can/may be used in development env will contain source maps. Other will not as we're assuming nobody debugs in production and on production bundles (debugging in mostly done in development). |
There's also this line in swagger-ui/webpack/es-bundle-core.js Line 47 in b6805e5
perhaps it was to bypass the previous nosources-source-map setting?
|
We don't want to generate source maps for
|
We'll use new reusable helper for this one to align it with |
Please also modify
|
Another references in Line 8 in 78f6ffb
|
Refs #9101
From the official Webpack documentation for devtool:
and guide for production:
Testing the options with the static HTML page in the
dist
folder:source-map
(PR):nosources-source-map
(current):hidden-source-map
:After building with the
source-map
option, the size of thedist
folder went from10 439 023 bytes (10,5 MB on disk)
to19 239 017 bytes (19,3 MB on disk)