Skip to content

Missing assets in entrypoint.auxiliaryAssets part of stats object #931

Open
@geldmacher

Description

Bug report

Missing assets in entrypoint.auxiliaryAssets part of stats object in production mode if experimentalUseImportModule option is true and assets are part of an file imported in main entrypoint file.

Actual Behavior

Referenced files in imported css files are not part of the auxiliaryAssets array, if experimentalUseImportModule option is true.

Expected Behavior

Referenced files in imported css files should be part of the auxiliaryAssets array, if experimentalUseImportModule option is true.

How Do We Reproduce?

See console output for npm run prod: https://github.com/geldmacher/webpack_mini-css-extract-plugin_issue_test_repo
The font files are missing with experimentalUseImportModule: true

Please paste the results of npx webpack-cli info here, and mention other relevant information

System:

  • OS: Linux 5.10 Ubuntu 20.04.4 LTS (Focal Fossa)
  • CPU: (8) x64 Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz
  • Memory: 8.18 GB / 11.69 GB

Binaries:

  • Node: 17.9.0 - /home/linuxbrew/.linuxbrew/bin/node
  • npm: 8.5.5 - /home/linuxbrew/.linuxbrew/bin/npm

Packages:

  • css-loader: ^6.7.1 => 6.7.1
  • webpack: ^5.72.0 => 5.72.0
  • webpack-cli: ^4.9.2 => 4.9.2

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