File tree Expand file tree Collapse file tree 12 files changed +1061
-24
lines changed Expand file tree Collapse file tree 12 files changed +1061
-24
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ module.exports = {
22 env : {
33 browser : true ,
44 es2021 : true ,
5- node : true
5+ node : true ,
6+ jest : true
67 } ,
78 extends : [
89 'eslint:recommended' ,
Original file line number Diff line number Diff line change 1+ const config = {
2+ projectName : 'taro-app' ,
3+ designWidth : 750 ,
4+ deviceRatio : {
5+ 640 : 2.34 / 2 ,
6+ 750 : 1 ,
7+ 828 : 1.81 / 2
8+ } ,
9+ sourceRoot : 'src' ,
10+ outputRoot : 'dist' ,
11+ plugins : [ ] ,
12+ defineConstants : {
13+ } ,
14+ copy : {
15+ patterns : [
16+ ] ,
17+ options : {
18+ }
19+ } ,
20+ framework : 'react' ,
21+ compiler : 'webpack5' ,
22+ cache : {
23+ enable : false
24+ } ,
25+ mini : {
26+ postcss : {
27+ pxtransform : {
28+ enable : true ,
29+ config : {
30+
31+ }
32+ } ,
33+ url : {
34+ enable : true ,
35+ config : {
36+ limit : 1024
37+ }
38+ } ,
39+ cssModules : {
40+ enable : false ,
41+ config : {
42+ namingPattern : 'module' ,
43+ generateScopedName : '[name]__[local]___[hash:base64:5]'
44+ }
45+ }
46+ }
47+ } ,
48+ h5 : {
49+ publicPath : '/' ,
50+ staticDirectory : 'static' ,
51+ postcss : {
52+ autoprefixer : {
53+ enable : true ,
54+ config : {
55+ }
56+ } ,
57+ cssModules : {
58+ enable : false ,
59+ config : {
60+ namingPattern : 'module' ,
61+ generateScopedName : '[name]__[local]___[hash:base64:5]'
62+ }
63+ }
64+ }
65+ } ,
66+ rn : {
67+ appName : 'taroDemo' ,
68+ postcss : {
69+ cssModules : {
70+ enable : false
71+ }
72+ }
73+ }
74+ }
75+
76+ module . exports = function ( merge ) {
77+ if ( process . env . NODE_ENV === 'development' ) {
78+ return merge ( { } , config , require ( './dev' ) )
79+ }
80+ return merge ( { } , config , require ( './prod' ) )
81+ }
Original file line number Diff line number Diff line change 1+ const config = {
2+ projectName : 'taro-app' ,
3+ designWidth : 750 ,
4+ deviceRatio : {
5+ 640 : 2.34 / 2 ,
6+ 750 : 1 ,
7+ 828 : 1.81 / 2
8+ } ,
9+ sourceRoot : 'src' ,
10+ outputRoot : 'dist' ,
11+ plugins : [ 'tarojs-plugin-platform-nextjs' ] ,
12+ defineConstants : {
13+ } ,
14+ copy : {
15+ patterns : [
16+ ] ,
17+ options : {
18+ }
19+ } ,
20+ framework : 'react' ,
21+ compiler : 'webpack5' ,
22+ cache : {
23+ enable : false
24+ } ,
25+ mini : {
26+ postcss : {
27+ pxtransform : {
28+ enable : true ,
29+ config : {
30+
31+ }
32+ } ,
33+ url : {
34+ enable : true ,
35+ config : {
36+ limit : 1024
37+ }
38+ } ,
39+ cssModules : {
40+ enable : false ,
41+ config : {
42+ namingPattern : 'module' ,
43+ generateScopedName : '[name]__[local]___[hash:base64:5]'
44+ }
45+ }
46+ }
47+ } ,
48+ h5 : {
49+ publicPath : '/' ,
50+ staticDirectory : 'static' ,
51+ postcss : {
52+ autoprefixer : {
53+ enable : true ,
54+ config : {
55+ }
56+ } ,
57+ cssModules : {
58+ enable : false ,
59+ config : {
60+ namingPattern : 'module' ,
61+ generateScopedName : '[name]__[local]___[hash:base64:5]'
62+ }
63+ }
64+ }
65+ } ,
66+ rn : {
67+ appName : 'taroDemo' ,
68+ postcss : {
69+ cssModules : {
70+ enable : false
71+ }
72+ }
73+ }
74+ }
75+
76+ module . exports = function ( merge ) {
77+ if ( process . env . NODE_ENV === 'development' ) {
78+ return merge ( { } , config , require ( './dev' ) )
79+ }
80+ return merge ( { } , config , require ( './prod' ) )
81+ }
Original file line number Diff line number Diff line change 1+ const config = {
2+ projectName : 'taro-app' ,
3+ designWidth : 750 ,
4+ deviceRatio : {
5+ 640 : 2.34 / 2 ,
6+ 750 : 1 ,
7+ 828 : 1.81 / 2
8+ } ,
9+ sourceRoot : 'src' ,
10+ outputRoot : 'dist' ,
11+ defineConstants : {
12+ } ,
13+ copy : {
14+ patterns : [
15+ ] ,
16+ options : {
17+ }
18+ } ,
19+ framework : 'react' ,
20+ compiler : 'webpack5' ,
21+ cache : {
22+ enable : false
23+ } ,
24+ mini : {
25+ postcss : {
26+ pxtransform : {
27+ enable : true ,
28+ config : {
29+
30+ }
31+ } ,
32+ url : {
33+ enable : true ,
34+ config : {
35+ limit : 1024
36+ }
37+ } ,
38+ cssModules : {
39+ enable : false ,
40+ config : {
41+ namingPattern : 'module' ,
42+ generateScopedName : '[name]__[local]___[hash:base64:5]'
43+ }
44+ }
45+ }
46+ } ,
47+ h5 : {
48+ publicPath : '/' ,
49+ staticDirectory : 'static' ,
50+ postcss : {
51+ autoprefixer : {
52+ enable : true ,
53+ config : {
54+ }
55+ } ,
56+ cssModules : {
57+ enable : false ,
58+ config : {
59+ namingPattern : 'module' ,
60+ generateScopedName : '[name]__[local]___[hash:base64:5]'
61+ }
62+ }
63+ }
64+ } ,
65+ rn : {
66+ appName : 'taroDemo' ,
67+ postcss : {
68+ cssModules : {
69+ enable : false
70+ }
71+ }
72+ }
73+ }
74+
75+ module . exports = function ( merge ) {
76+ if ( process . env . NODE_ENV === 'development' ) {
77+ return merge ( { } , config , require ( './dev' ) )
78+ }
79+ return merge ( { } , config , require ( './prod' ) )
80+ }
Original file line number Diff line number Diff line change 1+ const config = {
2+ projectName : 'taro-app' ,
3+ designWidth : 750 ,
4+
5+ deviceRatio : {
6+ 640 : 2.34 / 2 ,
7+ 750 : 1 ,
8+ 828 : 1.81 / 2
9+ } ,
10+
11+ sourceRoot : 'src' ,
12+ outputRoot : 'dist' ,
13+
14+ defineConstants : {
15+ } ,
16+
17+ copy : {
18+ patterns : [
19+ ] ,
20+ options : {
21+ }
22+ } ,
23+
24+ framework : 'react' ,
25+ compiler : 'webpack5' ,
26+
27+ cache : {
28+ enable : false
29+ } ,
30+
31+ mini : {
32+ postcss : {
33+ pxtransform : {
34+ enable : true ,
35+ config : {
36+
37+ }
38+ } ,
39+ url : {
40+ enable : true ,
41+ config : {
42+ limit : 1024
43+ }
44+ } ,
45+ cssModules : {
46+ enable : false ,
47+ config : {
48+ namingPattern : 'module' ,
49+ generateScopedName : '[name]__[local]___[hash:base64:5]'
50+ }
51+ }
52+ }
53+ } ,
54+
55+ h5 : {
56+ publicPath : '/' ,
57+ staticDirectory : 'static' ,
58+ postcss : {
59+ autoprefixer : {
60+ enable : true ,
61+ config : {
62+ }
63+ } ,
64+ cssModules : {
65+ enable : false ,
66+ config : {
67+ namingPattern : 'module' ,
68+ generateScopedName : '[name]__[local]___[hash:base64:5]'
69+ }
70+ }
71+ }
72+ } ,
73+
74+ rn : {
75+ appName : 'taroDemo' ,
76+ postcss : {
77+ cssModules : {
78+ enable : false
79+ }
80+ }
81+ } ,
82+
83+ plugins : [ 'tarojs-plugin-platform-nextjs' ]
84+ }
85+
86+ module . exports = function ( merge ) {
87+ if ( process . env . NODE_ENV === 'development' ) {
88+ return merge ( { } , config , require ( './dev' ) )
89+ }
90+ return merge ( { } , config , require ( './prod' ) )
91+ }
You can’t perform that action at this time.
0 commit comments