File tree 6 files changed +38
-2
lines changed
test/cases/ignore-other-loaders
6 files changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ export function pitch(request) {
213
213
) } `;
214
214
215
215
this . importModule (
216
- `${ this . resourcePath } .webpack[javascript/auto]!=!${ request } ` ,
216
+ `${ this . resourcePath } .webpack[javascript/auto]!=!!! ${ request } ` ,
217
217
{
218
218
layer : options . layer ,
219
219
publicPath : publicPathForExtract ,
@@ -366,4 +366,6 @@ export function pitch(request) {
366
366
}
367
367
368
368
// eslint-disable-next-line func-names
369
- export default function ( ) { }
369
+ export default function ( content ) {
370
+ console . log ( content ) ;
371
+ }
Original file line number Diff line number Diff line change
1
+ body {
2
+ background : red;
3
+ }
4
+
Original file line number Diff line number Diff line change
1
+ import "./style.css" ;
Original file line number Diff line number Diff line change
1
+ .color {
2
+ color : red;
3
+ }
Original file line number Diff line number Diff line change
1
+ body {
2
+ background : red;
3
+ }
Original file line number Diff line number Diff line change
1
+ import Self from "../../../src" ;
2
+
3
+ module . exports = {
4
+ entry : "./index.js" ,
5
+ module : {
6
+ rules : [
7
+ {
8
+ test : / \. c s s | \. l e s s $ / ,
9
+ use : [
10
+ {
11
+ loader : Self . loader ,
12
+ } ,
13
+ "css-loader" ,
14
+ ] ,
15
+ } ,
16
+ ] ,
17
+ } ,
18
+ plugins : [
19
+ new Self ( {
20
+ filename : "[name].css" ,
21
+ } ) ,
22
+ ] ,
23
+ } ;
You can’t perform that action at this time.
0 commit comments