File tree 7 files changed +56
-0
lines changed
test/cases/composes-async
7 files changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ export function pitch(request) {
51
51
return ( {
52
52
loader : loader . path ,
53
53
options : loader . options ,
54
+ ident : loader . ident ,
54
55
} ) ;
55
56
} ) ;
56
57
}
Original file line number Diff line number Diff line change
1
+ : local .base {
2
+ composes : composed from './async-2.css' ;
3
+ background : blue;
4
+ }
Original file line number Diff line number Diff line change
1
+ : local .composed {
2
+ background : green;
3
+ }
Original file line number Diff line number Diff line change
1
+ .base {
2
+ background : blue;
3
+ }
4
+
Original file line number Diff line number Diff line change
1
+ .composed {
2
+ background : green;
3
+ }
4
+
Original file line number Diff line number Diff line change
1
+ import ( './async-1.css' ) ;
2
+ import ( './async-2.css' ) ;
Original file line number Diff line number Diff line change
1
+ const Self = require ( '../../../' ) ;
2
+
3
+ module . exports = {
4
+ entry : './index.js' ,
5
+ module : {
6
+ rules : [
7
+ {
8
+ test : / \. c s s $ / ,
9
+ use : [
10
+ Self . loader ,
11
+ {
12
+ loader : 'css-loader' ,
13
+ options : {
14
+ localIdentName : '[local]'
15
+ }
16
+ }
17
+ ] ,
18
+ } ,
19
+ ] ,
20
+ } ,
21
+ optimization : {
22
+ splitChunks : {
23
+ cacheGroups : {
24
+ cssDedupe : {
25
+ test : / \. c s s $ / ,
26
+ chunks : 'all' ,
27
+ minChunks : 2 ,
28
+ enforce : true
29
+ }
30
+ }
31
+ }
32
+ } ,
33
+ plugins : [
34
+ new Self ( {
35
+ filename : '[name].css' ,
36
+ } ) ,
37
+ ] ,
38
+ } ;
You can’t perform that action at this time.
0 commit comments