Skip to content

Commit

Permalink
Add option to analyze minified bundle
Browse files Browse the repository at this point in the history
Measuring minified bundle size can be a more realistic way of keeping track of app bundle size and boot performance, especially given minification may be removing dead code paths.
  • Loading branch information
levibuzolic authored May 24, 2019
1 parent 2c99a48 commit 3bce795
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ commander
.version(packageJson.version, '-v, --version')
.option('-a, --android', 'Analyse Android bundle ')
.option('-d, --dev', 'Analyse developement bundle')
.option('-m, --min', 'Analyse minified bundle')
.option('-j, --json', 'Output JSON')
.option('-o, --output [dir]', 'Specify output dir', defaultDir)
.option('-p, --port [port]', 'Specify js package port')
Expand All @@ -30,7 +31,7 @@ const query = qs.stringify({
platform,
sourceMap: 'true',
dev: commander.dev ? 'true' : 'false',
minify: 'false',
minify: commander.min ? 'false' : 'false',
hot: 'false'
});

Expand Down

0 comments on commit 3bce795

Please sign in to comment.