Commit 377d164
committed
test(html): assert <link> precedes <script> for JS-imported CSS
Reinforce the html-webpack-plugin#1813 invariant in the
css-imported-from-js case: a <link rel=stylesheet> emitted for a CSS
chunk pulled in by a <script src> entry must precede the <script> tag
itself, so browsers start the stylesheet download before the script
download. The snapshot already captures the order; the explicit
assertion documents the requirement and matches the pattern used by
the sibling tests (css-split-chunks-order, css-mixed-link-and-js-import,
css-runtime-and-split-chunks).1 parent 6c5f2f8 commit 377d164
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
43 | 53 | | |
44 | 54 | | |
45 | 55 | | |
| |||
0 commit comments