Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jantimon/css-loader-bug
Temporary css loader bug repository
https://github.com/jantimon/css-loader-bug
Last synced: 28 days ago
JSON representation
Temporary css loader bug repository
- Host: GitHub
- URL: https://github.com/jantimon/css-loader-bug
- Owner: jantimon
- Created: 2017-08-04T13:54:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-04T13:55:19.000Z (over 7 years ago)
- Last Synced: 2024-04-15T01:09:28.278Z (7 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo is just to show an issue with css-loader 0.28.4:
Using a tilde `~` inside a css file causes `Can't resolve '~'` if css-modules feature is activated:
```js
{
loader: 'css-loader',
options: {
modules: true,
}
},
```The bug can be reproduced this way:
```bash
npm install
npm run without-modules
npm run with-modules
```The first `npm run` will use a webpack config which **does not** use css modules and all will work well.
The secon `npm run` will use a webpack config which **does** use css modules and all will fail.