Skip to content

Common styles not added to all bundles on entry points code split #626

@omarjov

Description

@omarjov
  • Operating System: macOS Catalina
  • Node Version: v10.16.0
  • NPM Version: 6.11.3
  • webpack Version: 4.44.2
  • mini-css-extract-plugin Version: 1.0.0

Expected Behavior

I expect that common styles are included in every entry point css bundle where it's included.
Done according to this docs https://webpack.js.org/plugins/mini-css-extract-plugin/#extracting-css-based-on-entry

Actual Behavior

Styles are only included in one entry point.

Code

Code is the same as https://webpack.js.org/plugins/mini-css-extract-plugin/#extracting-css-based-on-entry

How Do We Reproduce?

  1. Create multiple entry points.
  2. Create component with scss style module.
  3. Use this component in two or more entry points.
  4. Styles of this component are in only one entrypoint

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions