bootstarted / css-split-webpack-plugin

Split your CSS for stupid browsers using webpack and postcss.
78 stars 22 forks source link

[patch] fix map undefined issue #23

Closed didi0613 closed 6 years ago

didi0613 commented 6 years ago

optimize-css-assets-webpack-plugin delegates to the CSS processor (cssnano as default). We have loaders for the styles file and they got compiled and minified by cssnano (with PostCSS). cssnano will remove the soucemaps.

Since optimize happens first and css split comes into after, at that time the sourcemap would be undefined.