Closed kfeinUI closed 8 years ago
Thanks for the report! Will investigate this. 😄
Cool. Let me know if you need anything further from my end. Would be nice to get source maps working for either case, but I'd settle for keeping the preserved flavor for modern browsers (can use conditional comments).
@kfeinUI Resolved here: https://github.com/metalabdesign/css-split-webpack-plugin/pull/6. 😄 Should be merged and published soon.
I load in less like so
{ test: /\.(less|css)$/, loader: ExtractTextPlugin.extract('css?-url&-autoprefixer&sourceMap!less?sourceMap') }
with pluginsnew ExtractTextPlugin('[name].css'), new CSSSplitWebpackPlugin({ //IE9 will ignore any more than ~4000 selectors. This does the work for us of splitting into smaller files. imports: true, preserve: true })
Tried with and without preserve. Even with the preserved sheet, the source map won't load (testing in Chrome). Works fine when I comment out this plugin.