Skip to content

Commit

Permalink
fix(flushChunks): Fixed duplicate bootstrap
Browse files Browse the repository at this point in the history
When using one of the older webpack config setups. Bootstrap is duplicated and executed twice

#61
  • Loading branch information
ScriptedAlchemy committed Jun 22, 2018
1 parent 8bc70e7 commit c2c4d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flushChunks.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const flushChunks = (stats: Stats, isWebpack: boolean, opts: Options = {}) => {
const jsAfter = ffc(afterEntries)

return createApiWithCss(
[...jsBefore, ...files, ...jsAfter],
[...jsBefore, ...files, ...jsAfter].filter(isUnique),
[
...jsBefore, // likely nothing in here, but if so: bootstrap.css, vendor.css, etc
...jsAfter.reverse(), // main.css, someElseYouPutBeforeMain.css, etc
Expand Down

0 comments on commit c2c4d4d

Please sign in to comment.