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
I expect that the style-loader will add the insert function to the bundle exactly 1 time.
Actual Behavior
But in reality, this function is created for each css file and inserted as an expression, webpack cannot optimize it, because it thinks that these are different functions
Partial fixed here #520, anyway it is impossible to use custom function and include this only once, but we have solution { insert: require.resolve('./my-custom-style-function') }, so you will not have multiple functions, WIP on this
Expected Behavior
I expect that the style-loader will add the insert function to the bundle exactly 1 time.
Actual Behavior
But in reality, this function is created for each css file and inserted as an expression, webpack cannot optimize it, because it thinks that these are different functions
Code
The text was updated successfully, but these errors were encountered: