Skip to content

Commit b3534a3

Browse files
authored
Remove css files duplicates
Add isUnique filter handler to files list passed to createApiWithCss second argument
1 parent 1be8449 commit b3534a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/flushChunks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const flushChunks = (stats: Stats, isWebpack: boolean, opts: Options = {}) => {
7979
...jsBefore, // likely nothing in here, but if so: bootstrap.css, vendor.css, etc
8080
...jsAfter.reverse(), // main.css, someElseYouPutBeforeMain.css, etc
8181
...files // correct incrementing order already
82-
],
82+
].filter(isUnique),
8383
stats,
8484
opts.outputPath
8585
)

0 commit comments

Comments
 (0)