Skip to content

Commit

Permalink
Remove css files duplicates
Browse files Browse the repository at this point in the history
Add isUnique filter handler to files list passed to createApiWithCss second argument
  • Loading branch information
dashukin authored Sep 28, 2018
1 parent 1be8449 commit b3534a3
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 @@ -79,7 +79,7 @@ const flushChunks = (stats: Stats, isWebpack: boolean, opts: Options = {}) => {
...jsBefore, // likely nothing in here, but if so: bootstrap.css, vendor.css, etc
...jsAfter.reverse(), // main.css, someElseYouPutBeforeMain.css, etc
...files // correct incrementing order already
],
].filter(isUnique),
stats,
opts.outputPath
)
Expand Down

0 comments on commit b3534a3

Please sign in to comment.