diff --git a/src/run.js b/src/run.js index 59b0258..c4043f0 100644 --- a/src/run.js +++ b/src/run.js @@ -427,6 +427,7 @@ const minimalcss = async (options) => { const enableServiceWorkers = options.enableServiceWorkers || false; const puppeteerArgs = options.puppeteerArgs || []; const whitelist = options.whitelist || []; + const forcedCssUrls = options.forcedCssUrls || []; const whitelistRules = whitelist.map((rule) => new RegExp(rule)); if (!enableServiceWorkers) { @@ -635,6 +636,9 @@ const minimalcss = async (options) => { allUsedHrefs.push(href); } }); + + allUsedHrefs.push(...forcedCssUrls) + const allCombinedAst = { type: 'StyleSheet', loc: null,