@@ -152,6 +152,93 @@ exports[`loader should work with server-relative url: result 1`] = `
152
152
153
153
exports[`loader should work with server-relative url: warnings 1`] = `Array []`;
154
154
155
+ exports[`loader should work with webpackIgnore comment: errors 1`] = `Array []`;
156
+
157
+ exports[`loader should work with webpackIgnore comment: module 1`] = `
158
+ " // Module
159
+ var code = \\"<!doctype html>\\\\n<html lang=\\\\\\"en\\\\\\">\\\\n<head>\\\\n <meta charset=\\\\\\"UTF-8\\\\\\">\\\\n <meta name=\\\\\\"viewport\\\\\\"\\\\n content=\\\\\\"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0\\\\\\">\\\\n <meta http-equiv=\\\\\\"X-UA-Compatible\\\\\\" content=\\\\\\"ie=edge\\\\\\">\\\\n <title>Document</title>\\\\n</head>\\\\n<body>\\\\n\\\\n\\\\n<!-- webpackIgnore: true -->\\\\n<img src=\\\\\\"image.png\\\\\\" />\\\\n<!-- webpackIgnore: true --> <img src=\\\\\\"image.png\\\\\\" />\\\\n<!-- webpackIgnore: true -->\\\\n<img srcset=\\\\\\"image.png 480w, image.png 768w\\\\\\" src=\\\\\\"image.png\\\\\\" alt=\\\\\\"Elva dressed as a fairy\\\\\\">\\\\n<!-- webpackIgnore: true -->\\\\n<img data-srcset=\\\\\\"image.png 480w, image.png 800w\\\\\\" sizes=\\\\\\"(max-width: 600px) 480px, 800px\\\\\\" data-src=\\\\\\"image.png\\\\\\" alt=\\\\\\"Elva dressed as a fairy\\\\\\">\\\\n\\\\n<!-- webpackIgnore: true -->\\\\n<meta itemprop=\\\\\\"image\\\\\\" content=\\\\\\"./image.png\\\\\\" />\\\\n<!-- webpackIgnore: true -->\\\\n<meta itemprop=\\\\\\"logo\\\\\\" content=\\\\\\"./image.png\\\\\\" />\\\\n<!-- webpackIgnore: true -->\\\\n<meta itemprop=\\\\\\"screenshot\\\\\\" content=\\\\\\"./image.png\\\\\\" />\\\\n<!-- webpackIgnore: true -->\\\\n<meta property=\\\\\\"og:audio\\\\\\" content=\\\\\\"./sound.mp3\\\\\\" />\\\\n<!-- webpackIgnore: true -->\\\\n<meta property=\\\\\\"og:audio:secure_url\\\\\\" content=\\\\\\"./sound.mp3\\\\\\" />\\\\n\\\\n<!-- webpackIgnore: true -->\\\\n<link itemprop=\\\\\\"downloadUrl\\\\\\" href=\\\\\\"image.png\\\\\\">\\\\n<!-- webpackIgnore: true -->\\\\n<link itemprop=\\\\\\"contentUrl\\\\\\" href=\\\\\\"image.png\\\\\\">\\\\n<!-- webpackIgnore: true -->\\\\n<link itemprop=\\\\\\"installUrl\\\\\\" href=\\\\\\"image.png\\\\\\">\\\\n\\\\n<!-- webpackIgnore: true -->\\\\n<link rel=\\\\\\"icon\\\\\\" type=\\\\\\"image/png\\\\\\" sizes=\\\\\\"192x192\\\\\\" href=\\\\\\"./image.png\\\\\\">\\\\n<!-- webpackIgnore: true -->\\\\n<link rel=\\\\\\"apple-touch-icon\\\\\\" href=\\\\\\"./image.png\\\\\\">\\\\n<!-- webpackIgnore: true -->\\\\n<link rel=\\\\\\"manifest\\\\\\" href=\\\\\\"./site.webmanifest\\\\\\">\\\\n\\\\n<svg width=\\\\\\"200\\\\\\" height=\\\\\\"200\\\\\\">\\\\n <!-- webpackIgnore: true -->\\\\n <image xlink:href=\\\\\\"./webpack.svg\\\\\\" height=\\\\\\"200\\\\\\" width=\\\\\\"200\\\\\\"/>\\\\n</svg>\\\\n\\\\n<!-- webpackIgnore: true -->\\\\n<div data-videomp4=\\\\\\"video.mp4\\\\\\"></div>\\\\n\\\\n<!-- webpackIgnore: true -->\\\\n<video controls poster=\\\\\\"./image.png\\\\\\">\\\\n <!-- webpackIgnore: true -->\\\\n <source src=\\\\\\"example.ogg\\\\\\" type=\\\\\\"video/ogg\\\\\\">\\\\n <!-- webpackIgnore: true -->\\\\n <track src=\\\\\\"example.vtt\\\\\\" kind=\\\\\\"subtitles\\\\\\" srclang=\\\\\\"en\\\\\\" label=\\\\\\"English\\\\\\">\\\\n</video>\\\\n\\\\n<picture>\\\\n <!-- webpackIgnore: true -->\\\\n <source media=\\\\\\"(min-width: 650px)\\\\\\" srcset=\\\\\\"image.png\\\\\\">\\\\n <!-- webpackIgnore: true -->\\\\n <source media=\\\\\\"(min-width: 465px)\\\\\\" srcset=\\\\\\"image.png\\\\\\">\\\\n <!-- webpackIgnore: true -->\\\\n <img src=\\\\\\"image.png\\\\\\" alt=\\\\\\"Flowers\\\\\\" style=\\\\\\"width:auto;\\\\\\">\\\\n</picture>\\\\n\\\\n\\\\n</body>\\\\n</html>\\";
160
+ // Exports
161
+ export default code;"
162
+ `;
163
+
164
+ exports[`loader should work with webpackIgnore comment: result 1`] = `
165
+ " <!doctype html>
166
+ <html lang=\\" en\\">
167
+ <head>
168
+ <meta charset =\\"UTF-8\\">
169
+ <meta name =\\"viewport\\"
170
+ content =\\"width=device-width, user-scalable =no, initial-scale =1.0, maximum-scale =1.0, minimum-scale =1.0\\">
171
+ <meta http-equiv =\\"X-UA-Compatible\\" content =\\"ie=edge\\">
172
+ <title>Document</title>
173
+ </head>
174
+ <body>
175
+
176
+
177
+ <!-- webpackIgnore: true -->
178
+ <img src =\\"image.png\\" />
179
+ <!-- webpackIgnore: true --> <img src =\\"image.png\\" />
180
+ <!-- webpackIgnore: true -->
181
+ <img srcset =\\"image.png 480w, image.png 768w\\" src =\\"image.png\\" alt =\\"Elva dressed as a fairy\\">
182
+ <!-- webpackIgnore: true -->
183
+ <img data-srcset =\\"image.png 480w, image.png 800w\\" sizes =\\"(max-width: 600px) 480px, 800px\\" data-src =\\"image.png\\" alt =\\"Elva dressed as a fairy\\">
184
+
185
+ <!-- webpackIgnore: true -->
186
+ <meta itemprop =\\"image\\" content =\\"./image.png\\" />
187
+ <!-- webpackIgnore: true -->
188
+ <meta itemprop =\\"logo\\" content =\\"./image.png\\" />
189
+ <!-- webpackIgnore: true -->
190
+ <meta itemprop =\\"screenshot\\" content =\\"./image.png\\" />
191
+ <!-- webpackIgnore: true -->
192
+ <meta property =\\"og:audio\\" content =\\"./sound.mp3\\" />
193
+ <!-- webpackIgnore: true -->
194
+ <meta property =\\"og:audio:secure_url\\" content =\\"./sound.mp3\\" />
195
+
196
+ <!-- webpackIgnore: true -->
197
+ <link itemprop =\\"downloadUrl\\" href =\\"image.png\\">
198
+ <!-- webpackIgnore: true -->
199
+ <link itemprop =\\"contentUrl\\" href =\\"image.png\\">
200
+ <!-- webpackIgnore: true -->
201
+ <link itemprop =\\"installUrl\\" href =\\"image.png\\">
202
+
203
+ <!-- webpackIgnore: true -->
204
+ <link rel =\\"icon\\" type =\\"image/png\\" sizes =\\"192x192\\" href =\\"./image.png\\">
205
+ <!-- webpackIgnore: true -->
206
+ <link rel =\\"apple-touch-icon\\" href =\\"./image.png\\">
207
+ <!-- webpackIgnore: true -->
208
+ <link rel =\\"manifest\\" href =\\"./site.webmanifest\\">
209
+
210
+ <svg width =\\"200\\" height =\\"200\\">
211
+ <!-- webpackIgnore: true -->
212
+ <image xlink:href=\\"./webpack.svg\\" height =\\"200\\" width =\\"200\\"/>
213
+ </svg>
214
+
215
+ <!-- webpackIgnore: true -->
216
+ <div data-videomp4 =\\"video.mp4\\"></div>
217
+
218
+ <!-- webpackIgnore: true -->
219
+ <video controls poster =\\"./image.png\\">
220
+ <!-- webpackIgnore: true -->
221
+ <source src =\\"example.ogg\\" type =\\"video/ogg\\">
222
+ <!-- webpackIgnore: true -->
223
+ <track src =\\"example.vtt\\" kind =\\"subtitles\\" srclang =\\"en\\" label =\\"English\\">
224
+ </video>
225
+
226
+ <picture>
227
+ <!-- webpackIgnore: true -->
228
+ <source media =\\"(min-width: 650px)\\" srcset =\\"image.png\\">
229
+ <!-- webpackIgnore: true -->
230
+ <source media =\\"(min-width: 465px)\\" srcset =\\"image.png\\">
231
+ <!-- webpackIgnore: true -->
232
+ <img src =\\"image.png\\" alt =\\"Flowers\\" style =\\"width:auto;\\">
233
+ </picture>
234
+
235
+
236
+ </body>
237
+ </html>"
238
+ `;
239
+
240
+ exports[`loader should work with webpackIgnore comment: warnings 1`] = `Array []`;
241
+
155
242
exports[`loader should work: errors 1`] = `Array []`;
156
243
157
244
exports[`loader should work: module 1`] = `
0 commit comments