Skip to content

CSS is not emitted for imports from html-webpack-plugin #646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ogonkov opened this issue Nov 4, 2020 · 4 comments
Closed

CSS is not emitted for imports from html-webpack-plugin #646

ogonkov opened this issue Nov 4, 2020 · 4 comments

Comments

@ogonkov
Copy link

ogonkov commented Nov 4, 2020

  • Operating System: macOS 10.15.7
  • Node Version: v10.17.0
  • NPM Version: 6.11.3
  • webpack Version: 5.4.0
  • mini-css-extract-plugin Version: 1.2.1

Expected Behavior

CSS chunk emitted, and inserted to html with CSS-modules hash

Actual Behavior

HTML emmited without css chunk and empty class attribute

Code

https://gist.github.com/ogonkov/2e23941414d6f0b3d5328bd80cba5674

How Do We Reproduce?

Instructions in gist above.

@ogonkov
Copy link
Author

ogonkov commented Nov 4, 2020

Same case previously produce an error #489

@alexander-akait
Copy link
Member

alexander-akait commented Nov 4, 2020

Sorry, not related to mini-css-extract-plugin, please open an issue in HTMLWebpackPlugin, we already exported all locals

@ogonkov
Copy link
Author

ogonkov commented Nov 5, 2020

I see that require in template is returns module, but it didn"t have any content. How it could be not related to loader?

@alexander-akait
Copy link
Member

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants