Skip to content

Commit 8bb09b2

Browse files
committed
Create a minimal test case for webpack-contrib/mini-css-extract-plugin#489
0 parents  commit 8bb09b2

File tree

7 files changed

+5334
-0
lines changed

7 files changed

+5334
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Steps to reproduce `Callback was already called` in
2+
[mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin)when you try to use it with
3+
[html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) to minimize css referenced in `<link href='...'/>`
4+
5+
- Clone this repo
6+
- Run `npm ci`
7+
- Run `node node_modules/webpack/bin/webpack.js`
8+
9+
Will fail with this error:
10+
```$
11+
Error: Callback was already called.
12+
at throwError (/mnt/winda/gits/mcep_issue_489/node_modules/neo-async/async.js:16:11)
13+
at /mnt/winda/gits/mcep_issue_489/node_modules/neo-async/async.js:2818:7
14+
at process._tickCallback (internal/process/next_tick.js:61:11)
15+
```

index.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.item {
2+
color: red;
3+
}

index.html

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<link href="./index.css"/>
2+
<div class="item">some text</div>

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alert('JS loaded!');

0 commit comments

Comments
 (0)