Skip to content

Commit c2c4d4d

Browse files
fix(flushChunks): Fixed duplicate bootstrap
When using one of the older webpack config setups. Bootstrap is duplicated and executed twice #61
1 parent 8bc70e7 commit c2c4d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flushChunks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const flushChunks = (stats: Stats, isWebpack: boolean, opts: Options = {}) => {
7474
const jsAfter = ffc(afterEntries)
7575

7676
return createApiWithCss(
77-
[...jsBefore, ...files, ...jsAfter],
77+
[...jsBefore, ...files, ...jsAfter].filter(isUnique),
7878
[
7979
...jsBefore, // likely nothing in here, but if so: bootstrap.css, vendor.css, etc
8080
...jsAfter.reverse(), // main.css, someElseYouPutBeforeMain.css, etc

0 commit comments

Comments
 (0)