2
2
3
3
exports [` HMR should handle error event 1` ] = ` "[HMR] css reload %s"` ;
4
4
5
- exports [` HMR should handle error event 2` ] = ` "<link rel =\\"stylesheet \\" href =\\"/dist/main.css\\"><link rel =\\"stylesheet \\" href =\\"http://localhost/dist/main.css?1479427200000\\">"`;
5
+ exports [` HMR should handle error event 2` ] = ` "<link rel =\\"preload \\" as =\\"style\\" href =\\"/dist/main.css\\"><link rel =\\"preload\\" as =\\"style \\" href =\\"http://localhost/dist/main.css?1479427200000\\">"`;
6
6
7
7
exports[`HMR should reloads with # link href 1`] = `"[HMR] css reload %s"`;
8
8
@@ -18,22 +18,22 @@ exports[`HMR should reloads with link without href 2`] = `"<link rel=\\"styleshe
18
18
19
19
exports[`HMR should reloads with locals 1`] = `"[HMR] Detected local css modules. Reload all css"`;
20
20
21
- exports[`HMR should reloads with locals 2`] = `"<link rel =\\"stylesheet \\" href =\\"/dist/main.css\\"><link rel =\\"stylesheet \\" href =\\"http://localhost/dist/main.css?1479427200000\\">"`;
21
+ exports[`HMR should reloads with locals 2`] = `"<link rel =\\"preload \\" as =\\"style\\" href =\\"/dist/main.css\\"><link rel =\\"preload\\" as =\\"style \\" href =\\"http://localhost/dist/main.css?1479427200000\\">"`;
22
22
23
23
exports[`HMR should reloads with non http/https link href 1`] = `"[HMR] css reload %s"`;
24
24
25
25
exports[`HMR should reloads with non http/https link href 2`] = `"<link rel =\\"stylesheet\\" href =\\"/dist/main.css\\"><link rel =\\"stylesheet\\" href =\\"http://localhost/dist/main.css?1479427200000\\"><link rel =\\"shortcut icon\\" href =\\"data:;base64,=\\">"`;
26
26
27
27
exports[`HMR should reloads with reloadAll option 1`] = `"[HMR] Reload all css"`;
28
28
29
- exports[`HMR should reloads with reloadAll option 2`] = `"<link rel =\\"stylesheet \\" href =\\"/dist/main.css\\"><link rel =\\"stylesheet \\" href =\\"http://localhost/dist/main.css?1479427200000\\">"`;
29
+ exports[`HMR should reloads with reloadAll option 2`] = `"<link rel =\\"preload \\" as =\\"style\\" href =\\"/dist/main.css\\"><link rel =\\"preload\\" as =\\"style \\" href =\\"http://localhost/dist/main.css?1479427200000\\">"`;
30
30
31
31
exports[`HMR should works 1`] = `"[HMR] css reload %s"`;
32
32
33
- exports[`HMR should works 2`] = `"<link rel =\\"stylesheet \\" href =\\"/dist/main.css\\"><link rel =\\"stylesheet \\" href =\\"http://localhost/dist/main.css?1479427200000\\">"`;
33
+ exports[`HMR should works 2`] = `"<link rel =\\"preload \\" as =\\"style\\" href =\\"/dist/main.css\\"><link rel =\\"preload\\" as =\\"style \\" href =\\"http://localhost/dist/main.css?1479427200000\\">"`;
34
34
35
35
exports[`HMR should works with multiple updates 1`] = `"[HMR] css reload %s"`;
36
36
37
- exports[`HMR should works with multiple updates 2`] = `"<link rel =\\"stylesheet \\" href =\\"/dist/main.css\\"><link rel =\\"stylesheet \\" href =\\"http://localhost/dist/main.css?1479427200000\\">"`;
37
+ exports[`HMR should works with multiple updates 2`] = `"<link rel =\\"preload \\" as =\\"style\\" href =\\"/dist/main.css\\"><link rel =\\"preload\\" as =\\"style \\" href =\\"http://localhost/dist/main.css?1479427200000\\">"`;
38
38
39
- exports[`HMR should works with multiple updates 3`] = `"<link rel =\\"stylesheet \\" href =\\"http://localhost/dist/main.css?1479427200000\\"><link rel =\\"stylesheet \\" href =\\"http://localhost/dist/main.css?1479427200001\\">"`;
39
+ exports[`HMR should works with multiple updates 3`] = `"<link rel =\\"preload \\" as =\\"style\\" href =\\"http://localhost/dist/main.css?1479427200000\\"><link rel =\\"preload\\" as =\\"style \\" href =\\"http://localhost/dist/main.css?1479427200001\\">"`;
0 commit comments