Skip to content

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

@Hirurg103

Description

@Hirurg103

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:

  • main-ba361f9ac7a251e81763-1.css
  • main-ba361f9ac7a251e81763-2.css

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",
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions