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
@@ -108,7 +109,7 @@ module.exports = env => {
108
109
}
109
110
110
111
const config = {
111
- mode : uglify ? "production" : "development" ,
112
+ mode : production ? "production" : "development" ,
112
113
context : appFullPath ,
113
114
externals,
114
115
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
@@ -68,7 +69,7 @@ module.exports = env => {
68
69
}
69
70
70
71
const config = {
71
- mode : uglify ? "production" : "development" ,
72
+ mode : production ? "production" : "development" ,
72
73
context : appFullPath ,
73
74
externals,
74
75
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
@@ -72,7 +73,7 @@ module.exports = env => {
72
73
}
73
74
74
75
const config = {
75
- mode : uglify ? "production" : "development" ,
76
+ mode : production ? "production" : "development" ,
76
77
context : appFullPath ,
77
78
externals,
78
79
watchOptions : {
You can’t perform that action at this time.
0 commit comments