File tree 2 files changed +13
-18
lines changed
examples/lazy-load-component
2 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,16 @@ module.exports = {
10
10
} ,
11
11
] ,
12
12
] ,
13
- // plugins: [
14
- // [
15
- // "import",
16
- // {
17
- // libraryName: "taro-ui",
18
- // customName: (name) => `taro-ui/lib/components/${name.slice(3)}`,
19
- // customStyleName: (name) =>
20
- // `taro-ui/dist/style/components/${name.slice(3)}.scss`,
21
- // },
22
- // "taro-ui",
23
- // ],
24
- // ],
13
+ plugins : [
14
+ [
15
+ "import" ,
16
+ {
17
+ libraryName : "taro-ui" ,
18
+ customName : ( name ) => `taro-ui/lib/components/${ name . slice ( 3 ) } ` ,
19
+ customStyleName : ( name ) =>
20
+ `taro-ui/dist/style/components/${ name . slice ( 3 ) } .scss` ,
21
+ } ,
22
+ "taro-ui" ,
23
+ ] ,
24
+ ] ,
25
25
} ;
Original file line number Diff line number Diff line change @@ -19,12 +19,7 @@ const config = {
19
19
}
20
20
} ,
21
21
framework : 'react' ,
22
- compiler : {
23
- type : 'webpack5' ,
24
- prebundle : {
25
- enable : false ,
26
- }
27
- } ,
22
+ compiler : 'webpack5' ,
28
23
cache : {
29
24
enable : false // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache
30
25
} ,
You can’t perform that action at this time.
0 commit comments