Skip to content

Commit ab4bf2f

Browse files
committed
remove depreciated uglify code
1 parent 2dcbbf9 commit ab4bf2f

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

README.md

-25
Original file line numberDiff line numberDiff line change
@@ -237,31 +237,6 @@ If you want to use multiple item templates, you can do that very similarly to ho
237237
</GridView>
238238
```
239239

240-
## Working with Webpack+Uglify
241-
In case you are uing webpack and also are minifying/uglifying your code, there are some specific names that should be excluded from the uglification for the widget to work properly. The GridView widget exports those and you need to add them to the mangle exclude option of the uglifyjs plugin in the `webpack.common.js` file:
242-
```js
243-
var gridViewMangleExcludes = require("nativescript-grid-view/uglify-mangle-excludes").default;
244-
//......
245-
module.exports = function (platform, destinationApp) {
246-
//......
247-
if (process.env.npm_config_uglify) {
248-
plugins.push(new webpack.LoaderOptionsPlugin({
249-
minimize: true
250-
}));
251-
252-
//Work around an Android issue by setting compress = false
253-
var compress = platform !== "android";
254-
plugins.push(new webpack.optimize.UglifyJsPlugin({
255-
mangle: {
256-
except: nsWebpack.uglifyMangleExcludes.concat(gridViewMangleExcludes),
257-
},
258-
compress: compress,
259-
}));
260-
}
261-
//......
262-
}
263-
```
264-
265240
## Demos
266241
This repository includes both Angular and plain NativeScript demos. In order to run those execute the following in your shell:
267242
```shell

0 commit comments

Comments
 (0)