Skip to content

Commit

Permalink
Merge pull request #62 from faceyspacey/duplicate-chunk-fix
Browse files Browse the repository at this point in the history
fix(flushChunks): Fixed duplicate bootstrap.js file
  • Loading branch information
ScriptedAlchemy authored Jun 23, 2018
2 parents 8bc70e7 + c2c4d4d commit f66b2f1
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 f66b2f1

Please sign in to comment.