@@ -30,8 +30,13 @@ var ___HTML_LOADER_IDENT_1___ = require(\\"./image.png\\");
30
30
var ___HTML_LOADER_IDENT_2___ = require(\\ "aliasImg\\ ");
31
31
var ___HTML_LOADER_IDENT_3___ = require(\\ "./image.png\\ ");
32
32
var ___HTML_LOADER_IDENT_4___ = require(\\ "./icons.svg\\ ");
33
+ var ___HTML_LOADER_IDENT_5___ = require(\\ "./image.png\\ ");
34
+ var ___HTML_LOADER_IDENT_6___ = require(\\ "./image.png\\ ");
35
+ var ___HTML_LOADER_IDENT_7___ = require(\\ "./image.png\\ ");
36
+ var ___HTML_LOADER_IDENT_8___ = require(\\ "./image.png\\ ");
37
+ var ___HTML_LOADER_IDENT_9___ = require(\\ "./image.png\\ ");
33
38
// Exports
34
- module.exports = \\"<h1>My First Heading</h1>\\\\n<p>My first paragraph.</p>\\\\n<h2>An Unordered HTML List</h2>\\\\n\\\\n<ul>\\\\n <li>Coffee</li>\\\\n <li>Tea</li>\\\\n <li>Milk</li>\\\\n</ul>\\\\n\\\\n<h2>An Ordered HTML List</h2>\\\\n\\\\n<ol>\\\\n <li>Coffee</li>\\\\n <li>Tea</li>\\\\n <li>Milk</li>\\\\n</ol>\\\\n\\\\n<script>console.log({\\\\\\"json\\\\\\": \\\\\\"with \\\\\\\\\\\\\\"quotes\\\\\\\\\\\\\\" in value\\\\\\"})</script>\\\\n\\\\n<!-- comment -->\\\\n\\\\n<div>Foo</div>\\\\n\\\\n\\\\n<div>BAR</div>\\\\n\\\\n<input type=\\\\\\"text\\\\\\" />\\\\n\\\\n<script> console.log(1 + 2 + \`\${3 + 3}\`) </script>\\\\n\\\\n<img src=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_0___) + \\"\\\\\\">\\\\n<img src=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_1___) + \\"\\\\\\">\\\\n<img src=\\\\\\"/image.png\\\\\\">\\\\n<img src=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_2___) + \\"\\\\\\">\\\\n<img src=\\\\\\"\\\\\\">\\\\n<img src=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_3___) + \\"\\\\\\">\\\\n\\\\n<script src=\\\\\\"script.js\\\\\\"></script>\\\\n\\\\n<custom-element custom-src=\\\\\\"image.png\\\\\\" />\\\\n<custom-img custom-src=\\\\\\"image.png\\\\\\"/></custom-element>\\\\n\\\\n<img src=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_4___) + \\"#hash\\\\\\">\\\\n\\\\n<a href=\\\\\\"mailto:username@exampledomain.com\\\\\\"></a>\\\\n\\";"
39
+ module.exports = \\"<h1>My First Heading</h1>\\\\n<p>My first paragraph.</p>\\\\n<h2>An Unordered HTML List</h2>\\\\n\\\\n<ul>\\\\n <li>Coffee</li>\\\\n <li>Tea</li>\\\\n <li>Milk</li>\\\\n</ul>\\\\n\\\\n<h2>An Ordered HTML List</h2>\\\\n\\\\n<ol>\\\\n <li>Coffee</li>\\\\n <li>Tea</li>\\\\n <li>Milk</li>\\\\n</ol>\\\\n\\\\n<script>console.log({\\\\\\"json\\\\\\": \\\\\\"with \\\\\\\\\\\\\\"quotes\\\\\\\\\\\\\\" in value\\\\\\"})</script>\\\\n\\\\n<!-- comment -->\\\\n\\\\n<div>Foo</div>\\\\n\\\\n\\\\n<div>BAR</div>\\\\n\\\\n<input type=\\\\\\"text\\\\\\" />\\\\n\\\\n<script> console.log(1 + 2 + \`\${3 + 3}\`) </script>\\\\n\\\\n<img src=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_0___) + \\"\\\\\\">\\\\n<img src=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_1___) + \\"\\\\\\">\\\\n<img src=\\\\\\"/image.png\\\\\\">\\\\n<img src=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_2___) + \\"\\\\\\">\\\\n<img src=\\\\\\"\\\\\\">\\\\n<img src=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_3___) + \\"\\\\\\">\\\\n\\\\n<script src=\\\\\\"script.js\\\\\\"></script>\\\\n\\\\n<custom-element custom-src=\\\\\\"image.png\\\\\\" />\\\\n<custom-img custom-src=\\\\\\"image.png\\\\\\"/></custom-element>\\\\n\\\\n<img src=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_4___) + \\"#hash\\\\\\">\\\\n\\\\n<a href=\\\\\\"mailto:username@exampledomain.com\\\\\\"></a>\\\\n\\\\n<img srcset=\\\\\\"image.png 480w, image.png 800w\\\\\\" sizes=\\\\\\"(max-width: 600px) 480px, 800px\\\\\\" src=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_5___) + \\"\\\\\\" alt=\\\\\\"Elva dressed as a fairy\\\\\\">\\\\n<img srcset=\\\\\\" image.png 480w , image.png 800w \\\\\\" sizes=\\\\\\"(max-width: 600px) 480px, 800px\\\\\\" src=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_6___) + \\"\\\\\\" alt=\\\\\\"Elva dressed as a fairy\\\\\\">\\\\n\\\\n<picture>\\\\n <source media=\\\\\\"(min-width: 650px)\\\\\\" srcset=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_7___) + \\"\\\\\\">\\\\n <source media=\\\\\\"(min-width: 465px)\\\\\\" srcset=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_8___) + \\"\\\\\\">\\\\n <img src=\\\\\\"\\" + ___HTML_LOADER_GET_URL_IMPORT___(___HTML_LOADER_IDENT_9___) + \\"\\\\\\" alt=\\\\\\"Flowers\\\\\\" style=\\\\\\"width:auto;\\\\\\">\\\\n</picture>\\\\n\\";"
35
40
` ;
36
41
37
42
exports [` loader should work: result 1` ] = `
@@ -81,6 +86,15 @@ exports[`loader should work: result 1`] = `
81
86
<img src =\\"/webpack/public/path/icons.svg#hash\\">
82
87
83
88
<a href =\\"mailto:username@exampledomain.com\\"></a>
89
+
90
+ <img srcset =\\"image.png 480w, image.png 800w\\" sizes =\\"(max-width: 600px) 480px, 800px\\" src =\\"/webpack/public/path/image.png\\" alt =\\"Elva dressed as a fairy\\">
91
+ <img srcset =\\" image.png 480w , image.png 800w \\" sizes =\\"(max-width: 600px) 480px, 800px\\" src =\\"/webpack/public/path/image.png\\" alt =\\"Elva dressed as a fairy\\">
92
+
93
+ <picture>
94
+ <source media =\\"(min-width: 650px)\\" srcset =\\"/webpack/public/path/image.png\\">
95
+ <source media =\\"(min-width: 465px)\\" srcset =\\"/webpack/public/path/image.png\\">
96
+ <img src =\\"/webpack/public/path/image.png\\" alt =\\"Flowers\\" style =\\"width:auto;\\">
97
+ </picture>
84
98
"
85
99
`;
86
100
0 commit comments