Skip to content

Commit 2db39ca

Browse files
committed
add dropdown mangle excludes to new webpack config
1 parent 8eedaae commit 2db39ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

demo/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const CopyWebpackPlugin = require("copy-webpack-plugin");
77
const ExtractTextPlugin = require("extract-text-webpack-plugin");
88
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
99
const { NativeScriptWorkerPlugin } = require("nativescript-worker-loader/NativeScriptWorkerPlugin");
10-
10+
const dropDownMangleExcludes = require("nativescript-drop-down/uglify-mangle-excludes").default;
1111

1212
const mainSheet = `app.css`;
1313

@@ -189,7 +189,7 @@ function getPlugins(platform, env) {
189189
// Work around an Android issue by setting compress = false
190190
const compress = platform !== "android";
191191
plugins.push(new webpack.optimize.UglifyJsPlugin({
192-
mangle: { except: nsWebpack.uglifyMangleExcludes },
192+
mangle: { except: nsWebpack.uglifyMangleExcludes.concat(dropDownMangleExcludes) },
193193
compress,
194194
}));
195195
}

0 commit comments

Comments
 (0)