@@ -35,11 +35,14 @@ exports[`overlay should not show initially, then show on an error and allow to c
35
35
X</button
36
36
><br /><br />
37
37
<div>
38
- <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />./foo.js
39
- 1:1 Module parse failed: Unterminated template (1:1) You may need an
40
- appropriate loader to handle this file type, currently no loaders are
41
- configured to process this file. See
42
- https://webpack.js.org/concepts#loaders > \`;<br /><br /><br />
38
+ <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />
39
+ <div>
40
+ ./foo.js 1:1 Module parse failed: Unterminated template (1:1) You may
41
+ need an appropriate loader to handle this file type, currently no
42
+ loaders are configured to process this file. See
43
+ https://webpack.js.org/concepts#loaders > \`;
44
+ </div>
45
+ <br /><br />
43
46
</div>
44
47
</div>
45
48
</body>
@@ -114,11 +117,14 @@ exports[`overlay should not show initially, then show on an error, then hide on
114
117
X</button
115
118
><br /><br />
116
119
<div>
117
- <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />./foo.js
118
- 1:1 Module parse failed: Unterminated template (1:1) You may need an
119
- appropriate loader to handle this file type, currently no loaders are
120
- configured to process this file. See
121
- https://webpack.js.org/concepts#loaders > \`;<br /><br /><br />
120
+ <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />
121
+ <div>
122
+ ./foo.js 1:1 Module parse failed: Unterminated template (1:1) You may
123
+ need an appropriate loader to handle this file type, currently no
124
+ loaders are configured to process this file. See
125
+ https://webpack.js.org/concepts#loaders > \`;
126
+ </div>
127
+ <br /><br />
122
128
</div>
123
129
</div>
124
130
</body>
@@ -193,11 +199,14 @@ exports[`overlay should not show initially, then show on an error, then show oth
193
199
X</button
194
200
><br /><br />
195
201
<div>
196
- <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />./foo.js
197
- 1:1 Module parse failed: Unterminated template (1:1) You may need an
198
- appropriate loader to handle this file type, currently no loaders are
199
- configured to process this file. See
200
- https://webpack.js.org/concepts#loaders > \`;<br /><br /><br />
202
+ <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />
203
+ <div>
204
+ ./foo.js 1:1 Module parse failed: Unterminated template (1:1) You may
205
+ need an appropriate loader to handle this file type, currently no
206
+ loaders are configured to process this file. See
207
+ https://webpack.js.org/concepts#loaders > \`;
208
+ </div>
209
+ <br /><br />
201
210
</div>
202
211
</div>
203
212
</body>
@@ -239,11 +248,14 @@ exports[`overlay should not show initially, then show on an error, then show oth
239
248
X</button
240
249
><br /><br />
241
250
<div>
242
- <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />./foo.js
243
- 1:1 Module parse failed: Unterminated template (1:1) You may need an
244
- appropriate loader to handle this file type, currently no loaders are
245
- configured to process this file. See
246
- https://webpack.js.org/concepts#loaders > \`;a<br /><br /><br />
251
+ <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />
252
+ <div>
253
+ ./foo.js 1:1 Module parse failed: Unterminated template (1:1) You may
254
+ need an appropriate loader to handle this file type, currently no
255
+ loaders are configured to process this file. See
256
+ https://webpack.js.org/concepts#loaders > \`;a
257
+ </div>
258
+ <br /><br />
247
259
</div>
248
260
</div>
249
261
</body>
@@ -365,12 +377,14 @@ exports[`overlay should show on a warning and error for initial compilation and
365
377
X</button
366
378
><br /><br />
367
379
<div>
368
- <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span
369
- ><br /><br /><strong>strong</strong><br /><br /><br />
380
+ <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />
381
+ <div><strong>strong</strong></div>
382
+ <br /><br />
370
383
</div>
371
384
<div>
372
- <span style=\\"color: rgb(227, 96, 73)\\">Error:</span
373
- ><br /><br /><strong>strong</strong><br /><br /><br />
385
+ <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />
386
+ <div><strong>strong</strong></div>
387
+ <br /><br />
374
388
</div>
375
389
</div>
376
390
</body>
@@ -431,24 +445,29 @@ exports[`overlay should show on a warning and error for initial compilation: ove
431
445
X</button
432
446
><br /><br />
433
447
<div>
434
- <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />Warning
435
- from compilation<br /><br /><br />
448
+ <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />
449
+ <div>Warning from compilation</div>
450
+ <br /><br />
436
451
</div>
437
452
<div>
438
- <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />Warning
439
- from compilation<br /><br /><br />
453
+ <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />
454
+ <div>Warning from compilation</div>
455
+ <br /><br />
440
456
</div>
441
457
<div>
442
- <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />Error from
443
- compilation. Can't find 'test' module.<br /><br /><br />
458
+ <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />
459
+ <div>Error from compilation. Can't find 'test' module.</div>
460
+ <br /><br />
444
461
</div>
445
462
<div>
446
- <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />Error from
447
- compilation. Can't find 'test' module.<br /><br /><br />
463
+ <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />
464
+ <div>Error from compilation. Can't find 'test' module.</div>
465
+ <br /><br />
448
466
</div>
449
467
<div>
450
- <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />Error from
451
- compilation. Can't find 'test' module.<br /><br /><br />
468
+ <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />
469
+ <div>Error from compilation. Can't find 'test' module.</div>
470
+ <br /><br />
452
471
</div>
453
472
</div>
454
473
</body>
@@ -509,8 +528,9 @@ exports[`overlay should show on a warning for initial compilation: overlay html
509
528
X</button
510
529
><br /><br />
511
530
<div>
512
- <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />Warning
513
- from compilation<br /><br /><br />
531
+ <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />
532
+ <div>Warning from compilation</div>
533
+ <br /><br />
514
534
</div>
515
535
</div>
516
536
</body>
@@ -571,8 +591,9 @@ exports[`overlay should show on a warning when "client.overlay" is "true": overl
571
591
X</button
572
592
><br /><br />
573
593
<div>
574
- <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />Warning
575
- from compilation<br /><br /><br />
594
+ <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />
595
+ <div>Warning from compilation</div>
596
+ <br /><br />
576
597
</div>
577
598
</div>
578
599
</body>
@@ -633,8 +654,9 @@ exports[`overlay should show on a warning when "client.overlay.errors" is "true"
633
654
X</button
634
655
><br /><br />
635
656
<div>
636
- <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />Warning
637
- from compilation<br /><br /><br />
657
+ <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />
658
+ <div>Warning from compilation</div>
659
+ <br /><br />
638
660
</div>
639
661
</div>
640
662
</body>
@@ -695,8 +717,9 @@ exports[`overlay should show on a warning when "client.overlay.warnings" is "tru
695
717
X</button
696
718
><br /><br />
697
719
<div>
698
- <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />Warning
699
- from compilation<br /><br /><br />
720
+ <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />
721
+ <div>Warning from compilation</div>
722
+ <br /><br />
700
723
</div>
701
724
</div>
702
725
</body>
@@ -722,6 +745,82 @@ exports[`overlay should show on a warning when "client.overlay.warnings" is "tru
722
745
"
723
746
`;
724
747
748
+ exports[`overlay should show on an ansi formatted error for initial compilation: overlay html 1`] = `
749
+ "<body>
750
+ <div
751
+ id=\\"webpack-dev-server-client-overlay-div\\"
752
+ style=\\"
753
+ position: fixed;
754
+ box-sizing: border-box;
755
+ inset: 0px;
756
+ width: 100vw;
757
+ height: 100vh;
758
+ background-color: rgba(0, 0, 0, 0.85);
759
+ color: rgb(232, 232, 232);
760
+ font-family: Menlo, Consolas, monospace;
761
+ font-size: large;
762
+ padding: 2rem;
763
+ line-height: 1.2;
764
+ white-space: pre-wrap;
765
+ overflow: auto;
766
+ \\"
767
+ >
768
+ <span>Compiled with problems:</span
769
+ ><button
770
+ style=\\"
771
+ background: transparent;
772
+ border: none;
773
+ font-size: 20px;
774
+ font-weight: bold;
775
+ color: white;
776
+ cursor: pointer;
777
+ float: right;
778
+ \\"
779
+ >
780
+ X</button
781
+ ><br /><br />
782
+ <div>
783
+ <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />
784
+ <div>
785
+ <span
786
+ style=\\"
787
+ font-weight: normal;
788
+ opacity: 1;
789
+ color: #transparent;
790
+ background: #transparent;
791
+ \\"
792
+ >
793
+ <span style=\\"color: #6d7891\\"> 18 |</span>
794
+ <span style=\\"color: #ffd080\\">Render</span>
795
+ <span style=\\"color: #ffd080\\">ansi formatted text</span></span
796
+ >
797
+ </div>
798
+ <br /><br />
799
+ </div>
800
+ </div>
801
+ </body>
802
+ "
803
+ `;
804
+
805
+ exports[`overlay should show on an ansi formatted error for initial compilation: page html 1`] = `
806
+ "<body>
807
+ <script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
808
+ <iframe
809
+ id=\\"webpack-dev-server-client-overlay\\"
810
+ src=\\"about:blank\\"
811
+ style=\\"
812
+ position: fixed;
813
+ inset: 0px;
814
+ width: 100vw;
815
+ height: 100vh;
816
+ border: none;
817
+ z-index: 2147483647;
818
+ \\"
819
+ ></iframe>
820
+ </body>
821
+ "
822
+ `;
823
+
725
824
exports[`overlay should show on an error for initial compilation: overlay html 1`] = `
726
825
"<body>
727
826
<div
@@ -757,8 +856,9 @@ exports[`overlay should show on an error for initial compilation: overlay html 1
757
856
X</button
758
857
><br /><br />
759
858
<div>
760
- <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />Error from
761
- compilation. Can't find 'test' module.<br /><br /><br />
859
+ <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />
860
+ <div>Error from compilation. Can't find 'test' module.</div>
861
+ <br /><br />
762
862
</div>
763
863
</div>
764
864
</body>
@@ -819,8 +919,9 @@ exports[`overlay should show on an error when "client.overlay" is "true": overla
819
919
X</button
820
920
><br /><br />
821
921
<div>
822
- <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />Error from
823
- compilation. Can't find 'test' module.<br /><br /><br />
922
+ <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />
923
+ <div>Error from compilation. Can't find 'test' module.</div>
924
+ <br /><br />
824
925
</div>
825
926
</div>
826
927
</body>
@@ -881,8 +982,9 @@ exports[`overlay should show on an error when "client.overlay.errors" is "true":
881
982
X</button
882
983
><br /><br />
883
984
<div>
884
- <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />Error from
885
- compilation. Can't find 'test' module.<br /><br /><br />
985
+ <span style=\\"color: rgb(227, 96, 73)\\">Error:</span><br /><br />
986
+ <div>Error from compilation. Can't find 'test' module.</div>
987
+ <br /><br />
886
988
</div>
887
989
</div>
888
990
</body>
@@ -943,8 +1045,9 @@ exports[`overlay should show on an error when "client.overlay.warnings" is "true
943
1045
X</button
944
1046
><br /><br />
945
1047
<div>
946
- <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />Warning
947
- from compilation<br /><br /><br />
1048
+ <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />
1049
+ <div>Warning from compilation</div>
1050
+ <br /><br />
948
1051
</div>
949
1052
</div>
950
1053
</body>
0 commit comments