Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
leftover css should read from unclaimed modules (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
MapGrid committed Feb 25, 2020
1 parent 181c94d commit 2f48c89
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/core/create_compilers/extract_css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,7 @@ export default function extract_css(
fs.writeFileSync(`${asset_dir}/${file}`, replaced);
});

unclaimed.forEach(file => {
entry_css_modules.push(file);
});

const leftover = get_css_from_modules(entry_css_modules, css_map, asset_dir);
const leftover = get_css_from_modules(Array.from(unclaimed), css_map, asset_dir);
if (leftover) {
let { code, map } = leftover;

Expand Down

0 comments on commit 2f48c89

Please sign in to comment.