Do we have any tool similar to "Analyze APK" but f...
# javascript
a
Do we have any tool similar to "Analyze APK" but for JS? It's not really clear what are included in the webpacked JS.
a
@turansky thank you so much! Do you know are any examples available how to use it with gradle? Unfortunately, can't understand.
t
1. Add analyzer as dev dependency 2. Create
webpack.config.d/patch.js
(in JS subproject) with following content:
Copy code
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')

config.plugins.push(new BundleAnalyzerPlugin())
3. Check stats 4. PROFIT
a
@turansky thank you so much! config.plugins.push instead of module.exports was the magic. It seems I should explore webpack config syntax.
t
module.export
used in regular webpack config
But here we have patch, which will be merged in final config
You can find final config (with your patch) in build directory