We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f57b4a commit 20a6c32Copy full SHA for 20a6c32
src/bin/only-include-used-icons.ts
@@ -367,17 +367,15 @@ async function main() {
367
const lines = indexHtml.split("\n");
368
369
const importDsfrIndexLine = lines.findIndex(line =>
370
- /<link\s+rel="stylesheet"\s+href="(.*?%PUBLIC_URL%)?\/dsfr\/dsfr.min.css"\s*\/>/.test(
371
- line
372
- )
+ /<link.+href=["'](.*?%PUBLIC_URL%)?\/dsfr\/dsfr.min.css["']/.test(line)
373
);
374
375
if (importDsfrIndexLine === -1) {
376
break reorder_css_imports;
377
}
378
379
if (
380
- !/<link\s+rel="stylesheet"\s+href="(%PUBLIC_URL%)?\/dsfr\/utility\/icons\/icons\.min\.css"\s*\/>/.test(
+ !/<link.+href=["'](%PUBLIC_URL%)?\/dsfr\/utility\/icons\/icons\.min\.css["']/.test(
381
lines[importDsfrIndexLine + 1]
382
)
383
) {
0 commit comments