This repository was archived by the owner on Aug 7, 2021. It is now read-only.
File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ module.exports = env => {
43
43
44
44
// You can provide the following flags when running 'tns run android|ios'
45
45
aot, // --env.aot
46
- snapshot, // --env.snapshot
46
+ snapshot, // --env.snapshot,
47
+ production, // --env.production
47
48
uglify, // --env.uglify
48
49
report, // --env.report
49
50
sourceMap, // --env.sourceMap
@@ -109,7 +110,7 @@ module.exports = env => {
109
110
}
110
111
111
112
const config = {
112
- mode : uglify ? "production" : "development" ,
113
+ mode : production ? "production" : "development" ,
113
114
context : appFullPath ,
114
115
externals,
115
116
watchOptions : {
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ module.exports = env => {
38
38
39
39
// You can provide the following flags when running 'tns run android|ios'
40
40
snapshot, // --env.snapshot
41
+ production, // --env.production
41
42
uglify, // --env.uglify
42
43
report, // --env.report
43
44
sourceMap, // --env.sourceMap
@@ -69,7 +70,7 @@ module.exports = env => {
69
70
}
70
71
71
72
const config = {
72
- mode : uglify ? "production" : "development" ,
73
+ mode : production ? "production" : "development" ,
73
74
context : appFullPath ,
74
75
externals,
75
76
watchOptions : {
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ module.exports = env => {
39
39
40
40
// You can provide the following flags when running 'tns run android|ios'
41
41
snapshot, // --env.snapshot
42
+ production, // --env.production
42
43
uglify, // --env.uglify
43
44
report, // --env.report
44
45
sourceMap, // --env.sourceMap
@@ -73,7 +74,7 @@ module.exports = env => {
73
74
}
74
75
75
76
const config = {
76
- mode : uglify ? "production" : "development" ,
77
+ mode : production ? "production" : "development" ,
77
78
context : appFullPath ,
78
79
externals,
79
80
watchOptions : {
You can’t perform that action at this time.
0 commit comments