@@ -19,6 +19,7 @@ describe('"sourceMap" option', () => {
19
19
'./css/index.js' ,
20
20
{
21
21
sourceMap : true ,
22
+ postcssOptions : { hideNothingWarning : true } ,
22
23
} ,
23
24
{
24
25
devtool : false ,
@@ -51,6 +52,7 @@ describe('"sourceMap" option', () => {
51
52
'./css/index.js' ,
52
53
{
53
54
sourceMap : true ,
55
+ postcssOptions : { hideNothingWarning : true } ,
54
56
} ,
55
57
{
56
58
devtool : 'source-map' ,
@@ -81,7 +83,9 @@ describe('"sourceMap" option', () => {
81
83
it ( 'should generate source maps when value is not specified and the "devtool" with "source-map" value' , async ( ) => {
82
84
const compiler = getCompiler (
83
85
'./css/index.js' ,
84
- { } ,
86
+ {
87
+ postcssOptions : { hideNothingWarning : true } ,
88
+ } ,
85
89
{
86
90
devtool : 'source-map' ,
87
91
}
@@ -119,6 +123,7 @@ describe('"sourceMap" option', () => {
119
123
prev : false ,
120
124
sourcesContent : true ,
121
125
} ,
126
+ hideNothingWarning : true ,
122
127
} ,
123
128
} ,
124
129
{
@@ -165,6 +170,7 @@ describe('"sourceMap" option', () => {
165
170
options : {
166
171
postcssOptions : {
167
172
map : true ,
173
+ hideNothingWarning : true ,
168
174
} ,
169
175
} ,
170
176
} ,
@@ -228,6 +234,7 @@ describe('"sourceMap" option', () => {
228
234
sourcesContent : true ,
229
235
annotation : true ,
230
236
} ,
237
+ hideNothingWarning : true ,
231
238
} ,
232
239
} ,
233
240
} ,
@@ -282,6 +289,7 @@ describe('"sourceMap" option', () => {
282
289
'./css/index.js' ,
283
290
{
284
291
sourceMap : false ,
292
+ postcssOptions : { hideNothingWarning : true } ,
285
293
} ,
286
294
{
287
295
devtool : false ,
@@ -301,6 +309,7 @@ describe('"sourceMap" option', () => {
301
309
'./css/index.js' ,
302
310
{
303
311
sourceMap : false ,
312
+ postcssOptions : { hideNothingWarning : true } ,
304
313
} ,
305
314
{
306
315
devtool : 'source-map' ,
@@ -318,7 +327,9 @@ describe('"sourceMap" option', () => {
318
327
it ( 'should not generate source maps when value is not specified and the "devtool" option with "source-map" value' , async ( ) => {
319
328
const compiler = getCompiler (
320
329
'./css/index.js' ,
321
- { } ,
330
+ {
331
+ postcssOptions : { hideNothingWarning : true } ,
332
+ } ,
322
333
{
323
334
devtool : false ,
324
335
}
@@ -348,6 +359,9 @@ describe('"sourceMap" option', () => {
348
359
} ,
349
360
{
350
361
loader : path . resolve ( __dirname , '../src' ) ,
362
+ options : {
363
+ postcssOptions : { hideNothingWarning : true } ,
364
+ } ,
351
365
} ,
352
366
{
353
367
loader : 'sass-loader' ,
@@ -387,9 +401,7 @@ describe('"sourceMap" option', () => {
387
401
it ( 'should generate source maps when previous loader returns source maps ("less-loader")' , async ( ) => {
388
402
const compiler = getCompiler (
389
403
'./less/index.js' ,
390
- {
391
- config : false ,
392
- } ,
404
+ { } ,
393
405
{
394
406
devtool : 'source-map' ,
395
407
module : {
@@ -403,6 +415,9 @@ describe('"sourceMap" option', () => {
403
415
} ,
404
416
{
405
417
loader : path . resolve ( __dirname , '../src' ) ,
418
+ options : {
419
+ postcssOptions : { hideNothingWarning : true } ,
420
+ } ,
406
421
} ,
407
422
{
408
423
loader : 'less-loader' ,
@@ -444,6 +459,7 @@ describe('"sourceMap" option', () => {
444
459
inline : true ,
445
460
annotation : false ,
446
461
} ,
462
+ hideNothingWarning : true ,
447
463
} ,
448
464
} ,
449
465
{
@@ -467,6 +483,7 @@ describe('"sourceMap" option', () => {
467
483
inline : true ,
468
484
annotation : false ,
469
485
} ,
486
+ hideNothingWarning : true ,
470
487
} ,
471
488
} ,
472
489
{
0 commit comments