bootstarted / css-split-webpack-plugin

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

Is it possible to get css-split-webpack-plugin working with webpack-manifest-plugin? #27

Open Hirurg103 opened 6 years ago

Hirurg103 commented 6 years ago

I am trying to set up css-split-webpack-plugin in my Rails application. It uses webpack-manifest-plugin to generate manifest.

When I compile my main.css file it gets splitted into two files:

but into the manifest is added the second file only:

cat public/packs/manifest.json
=>
...
  "main.css": "/packs/main-ba361f9ac7a251e81763-2.css",
  "main.css.map": "/packs/main-ba361f9ac7a251e81763-2.css.map",
...

Is it possible to fix this issue and include into the manifest both files? Like this:

...
  "main-1.css": "/packs/main-ba361f9ac7a251e81763-1.css",
  "main-1.css.map": "/packs/main-ba361f9ac7a251e81763-1.css.map",
  "main-2.css": "/packs/main-ba361f9ac7a251e81763-2.css",
  "main-2.css.map": "/packs/main-ba361f9ac7a251e81763-2.css.map",
...
Hirurg103 commented 6 years ago

Hello guys, do you have any thoughts on this?