Skip to content

jeffijoe/webpack-css-dupe-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Reproduction of an issue with Style Loader.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published