You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imported CSS files end up inlined in the JS bundles. This isn't an issue during development however for production builds this bloats the JS not only with CSS but also with the CSS source-map. There is also a security warning in the webpack docs related to using style-loader in production.
Solution
Use the mini-css-extract plugin to extract the imported css into .css files.
Which areas does this feature request relate to
Problem
Imported CSS files end up inlined in the JS bundles. This isn't an issue during development however for production builds this bloats the JS not only with CSS but also with the CSS source-map. There is also a security warning in the webpack docs related to using style-loader in production.
Solution
Use the mini-css-extract plugin to extract the imported css into .css files.
Alternatives
No response
Additional context
Are you interested in contributing the solution?
The text was updated successfully, but these errors were encountered: