This repository was archived by the owner on Dec 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 40
40
"nativescript-worker-loader" : " ~0.9.0" ,
41
41
"node-sass" : " ^4.9.2" ,
42
42
"sass-loader" : " ^7.1.0" ,
43
- "uglifyjs -webpack-plugin" : " ~1.2.7 " ,
43
+ "terser -webpack-plugin" : " ^1.1.0 " ,
44
44
"vue-loader" : " ^15.2.6" ,
45
45
"webpack" : " ^4.16.4" ,
46
46
"webpack-bundle-analyzer" : " ~2.13.1" ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const webpack = require("webpack");
4
4
const CleanWebpackPlugin = require ( "clean-webpack-plugin" ) ;
5
5
const CopyWebpackPlugin = require ( "copy-webpack-plugin" ) ;
6
6
const { BundleAnalyzerPlugin } = require ( "webpack-bundle-analyzer" ) ;
7
- const UglifyJsPlugin = require ( "uglifyjs -webpack-plugin" ) ;
7
+ const TerserPlugin = require ( 'terser -webpack-plugin' ) ;
8
8
9
9
const VueLoaderPlugin = require ( 'vue-loader/lib/plugin' ) ;
10
10
const NsVueTemplateCompiler = require ( "nativescript-vue-template-compiler" ) ;
@@ -130,10 +130,10 @@ module.exports = env => {
130
130
} ,
131
131
minimize : Boolean ( production ) ,
132
132
minimizer : [
133
- new UglifyJsPlugin ( {
133
+ new TerserPlugin ( {
134
134
parallel : true ,
135
135
cache : true ,
136
- uglifyOptions : {
136
+ terserOptions : {
137
137
output : {
138
138
comments : false ,
139
139
} ,
@@ -143,6 +143,7 @@ module.exports = env => {
143
143
'collapse_vars' : platform !== "android" ,
144
144
sequences : platform !== "android" ,
145
145
} ,
146
+ safari10 : platform === "ios" ,
146
147
} ,
147
148
} ) ,
148
149
] ,
You can’t perform that action at this time.
0 commit comments