Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffijoe/webpack-css-dupe-bug
Reproduction of an issue with Style Loader.
https://github.com/jeffijoe/webpack-css-dupe-bug
Last synced: 15 days ago
JSON representation
Reproduction of an issue with Style Loader.
- Host: GitHub
- URL: https://github.com/jeffijoe/webpack-css-dupe-bug
- Owner: jeffijoe
- Created: 2019-12-27T10:15:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T13:15:30.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T12:18:20.524Z (30 days ago)
- Language: JavaScript
- Size: 2.14 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Webpack Style Loader + CSS Modules bug
This repo is a reproduction of an issue with using CSS Modules and Style Loader.
When using CSS Modules `composes`, the referenced file gets added as a style twice.
Changing the `injectType` to `singletonStyleTag` has no effect, the contents are added multiple times.I've included the built output for using `MiniCssExtractPlugin` which works fine and only includes the referenced file once.
# Running
* `npm run dev` to run the dev server on port `8080`.
* `npm run build` to build for production, **where the issue is not present due to using `MiniCssExtractPlugin`**.