bootstarted / css-split-webpack-plugin

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

Webpack 2 support #10

Closed yleclanche closed 7 years ago

yleclanche commented 7 years ago

Hello,

Is this supposed to work with webpack 2 ? I get this : Error: Cannot find module 'webpack/lib/SourceMapSource Not sure if this is a configuration issue or a lack of webpack 2 support.

Thanks.

izaakschroeder commented 7 years ago

I need to change this to import {SourceMapSource} from 'webpack-sources'; for webpack@2. 😄 I'll look into it!

izaakschroeder commented 7 years ago

Should be available in + css-split-webpack-plugin@0.2.2 🎉

yleclanche commented 7 years ago

Nice ! Thanks

izaakschroeder commented 7 years ago

Happy to help! Let me know if anything else shows up. 🙏

yleclanche commented 7 years ago

I tried your fix today and it's not working. There is another import issue : Error: Cannot find module 'webpack/lib/RawSource' Importing RawSource from webpack-sources resolve the import error but it crashed during the build : http://pastie.org/10977708