File tree 16 files changed +142
-1
lines changed
16 files changed +142
-1
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ class MiniCssExtractPlugin {
165
165
}
166
166
167
167
identifier ( ) {
168
- return `css|${ this . _identifier } |${ this . _identifierIndex } ` ;
168
+ return `css|${ this . _identifier } |${ this . _identifierIndex } | ${ this . layer } | ${ this . supports } | ${ this . media } }} ` ;
169
169
}
170
170
171
171
/**
Original file line number Diff line number Diff line change
1
+ body {
2
+ background : black;
3
+ }
Original file line number Diff line number Diff line change
1
+ body {
2
+ background : black;
3
+ }
4
+
Original file line number Diff line number Diff line change
1
+ @supports (display : flex) {
2
+ body {
3
+ background : black;
4
+ }
5
+
6
+ }
7
+
8
+
Original file line number Diff line number Diff line change
1
+ @import url ("dark.css" ) supports(dis play: flex);
Original file line number Diff line number Diff line change
1
+ import Self from "../../../src" ;
2
+
3
+ module . exports = {
4
+ entry : {
5
+ dark : "./dark.css" ,
6
+ index : "./index.css" ,
7
+ } ,
8
+ module : {
9
+ rules : [
10
+ {
11
+ test : / \. c s s $ / ,
12
+ use : [
13
+ {
14
+ loader : Self . loader ,
15
+ } ,
16
+ {
17
+ loader : "css-loader" ,
18
+ options : {
19
+ modules : true ,
20
+ } ,
21
+ } ,
22
+ ] ,
23
+ } ,
24
+ ] ,
25
+ } ,
26
+ plugins : [
27
+ new Self ( {
28
+ filename : "[name].css" ,
29
+ } ) ,
30
+ ] ,
31
+ } ;
Original file line number Diff line number Diff line change
1
+ body {
2
+ background : black;
3
+ }
Original file line number Diff line number Diff line change
1
+ body {
2
+ background : black;
3
+ }
4
+
Original file line number Diff line number Diff line change
1
+ @layer framework.component {
2
+ body {
3
+ background : black;
4
+ }
5
+
6
+ }
7
+
8
+
Original file line number Diff line number Diff line change
1
+ @import url ("dark.css" ) layer(framewor k.component );
Original file line number Diff line number Diff line change
1
+ import Self from "../../../src" ;
2
+
3
+ module . exports = {
4
+ entry : {
5
+ dark : "./dark.css" ,
6
+ index : "./index.css" ,
7
+ } ,
8
+ module : {
9
+ rules : [
10
+ {
11
+ test : / \. c s s $ / ,
12
+ use : [
13
+ {
14
+ loader : Self . loader ,
15
+ } ,
16
+ {
17
+ loader : "css-loader" ,
18
+ options : {
19
+ modules : true ,
20
+ } ,
21
+ } ,
22
+ ] ,
23
+ } ,
24
+ ] ,
25
+ } ,
26
+ plugins : [
27
+ new Self ( {
28
+ filename : "[name].css" ,
29
+ } ) ,
30
+ ] ,
31
+ } ;
Original file line number Diff line number Diff line change
1
+ body {
2
+ background : black;
3
+ }
Original file line number Diff line number Diff line change
1
+ body {
2
+ background : black;
3
+ }
4
+
Original file line number Diff line number Diff line change
1
+ @media (prefers-color-scheme : dark) {
2
+ body {
3
+ background : black;
4
+ }
5
+
6
+ }
7
+
8
+
Original file line number Diff line number Diff line change
1
+ @import "./dark.css" (prefers-color-scheme : dark);
Original file line number Diff line number Diff line change
1
+ import Self from "../../../src" ;
2
+
3
+ module . exports = {
4
+ entry : {
5
+ dark : "./dark.css" ,
6
+ index : "./index.css" ,
7
+ } ,
8
+ module : {
9
+ rules : [
10
+ {
11
+ test : / \. c s s $ / ,
12
+ use : [
13
+ {
14
+ loader : Self . loader ,
15
+ } ,
16
+ {
17
+ loader : "css-loader" ,
18
+ options : {
19
+ modules : true ,
20
+ } ,
21
+ } ,
22
+ ] ,
23
+ } ,
24
+ ] ,
25
+ } ,
26
+ plugins : [
27
+ new Self ( {
28
+ filename : "[name].css" ,
29
+ } ) ,
30
+ ] ,
31
+ } ;
You can’t perform that action at this time.
0 commit comments