Skip to content

"Extracting CSS based on entry" example doesn't work #628

@pinkiebala

Description

@pinkiebala
  • Operating System: ubuntu20.04
  • Node Version: 12.16.1
  • NPM Version: 6.13.4
  • webpack Version: 4.36.1
  • mini-css-extract-plugin Version: 1.1.0

Expected Behavior

Extracting CSS based on entry example should work.

In the reproduce repo,
CSS of comp1.css should merge into app1.css.
CSS of comp2.css should merge into app2.css.

Actual Behavior

Each of comp1 & comp2 has its own CSS chunk.

And:

function recursiveIssuer(m) {
  if (m.issuer) {
    return recursiveIssuer(m.issuer);
  } else if (m.name){ // <--- this is `undefined`
    return m.name;
  }
  return false;
}

How Do We Reproduce?

Here is the reproduce repo
https://github.com/pinkiebala/extract-css-entry-failed-reproduce

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