-
-
Notifications
You must be signed in to change notification settings - Fork 611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Bundle analyzer #4141
Open
info-arnav
wants to merge
21
commits into
webpack:master
Choose a base branch
from
info-arnav:bundle-analyzer
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3
−2
Open
feat: Bundle analyzer #4141
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
93a45c8
test
info-arnav 80d7233
Merge branch 'master' of https://github.com/info-arnav/webpack-cli
info-arnav 4355ebc
add: add boilerplate script
info-arnav 5704492
add: react boilerplate
info-arnav 1591b8d
add: react boilerplate
info-arnav 78c59c8
feat: dot env plugin
info-arnav af339c9
main branch normal
info-arnav a2026f6
Merge branch 'master' of https://github.com/info-arnav/webpack-cli
info-arnav 9565c0d
Merge branch 'master' of https://github.com/info-arnav/webpack-cli
info-arnav a2af2b2
Merge branch 'master' of https://github.com/info-arnav/webpack-cli
info-arnav b725d60
fix: removed boilerplate
info-arnav 02ee878
fix: master
info-arnav b69badf
feat: creating a new bundle-analyzer-plugin in webpack itself
info-arnav 66ebe4e
Merge branch 'master' of https://github.com/info-arnav/webpack-cli
info-arnav 3f4ff05
feat: added flags for bundle-analyzer-plugin
info-arnav 569503c
Merge branch 'bundle-analyzer' of https://github.com/info-arnav/webpa…
info-arnav e667afe
fix: removed unneccesary parts
info-arnav 6f24b14
fix: added analyze type to options
info-arnav f4f8d0e
fix: improved flags
info-arnav b417cce
fix: removed uneccessary stuff and moved file to bin directory
info-arnav 40ca791
feat: moved flags to diff repo and imported them to file
info-arnav File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
"words": [ | ||
"Atsumu", | ||
"autoprefixer", | ||
"treemap", | ||
"Dont", | ||
"barbaz", | ||
"Cantarell", | ||
"Chizuru", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
"use strict"; | ||
|
||
module.exports = { | ||
version: { | ||
configs: [ | ||
{ | ||
type: "boolean", | ||
multiple: false, | ||
description: "Output the version number", | ||
path: "version", | ||
}, | ||
], | ||
description: "Output the version number", | ||
simpleType: "boolean", | ||
multiple: false, | ||
}, | ||
mode: { | ||
configs: [ | ||
{ | ||
type: "enum", | ||
values: ["server", "static", "json"], | ||
multiple: false, | ||
description: "The mode to run the analyzer in: server, static, or json.", | ||
path: "mode", | ||
defaultValue: "server", | ||
}, | ||
], | ||
description: "The mode to run the analyzer in: server, static, or json.", | ||
simpleType: "string", | ||
multiple: false, | ||
}, | ||
report: { | ||
configs: [ | ||
{ | ||
type: "string", | ||
multiple: false, | ||
description: 'Path to bundle report file that will be generated in "static" mode.', | ||
path: "report", | ||
defaultValue: "report.html", | ||
}, | ||
], | ||
description: 'Path to bundle report file that will be generated in "static" mode.', | ||
simpleType: "string", | ||
multiple: false, | ||
}, | ||
title: { | ||
configs: [ | ||
{ | ||
type: "string", | ||
multiple: false, | ||
description: "String to use in title element of html report.", | ||
path: "title", | ||
defaultValue: "Webpack Bundle Report", | ||
}, | ||
], | ||
description: "String to use in title element of html report.", | ||
simpleType: "string", | ||
multiple: false, | ||
}, | ||
size: { | ||
configs: [ | ||
{ | ||
type: "enum", | ||
values: ["stat", "parsed", "gzip"], | ||
multiple: false, | ||
description: "Module sizes to show in treemap by default.", | ||
path: "defaultSizes", | ||
defaultValue: "parsed", | ||
}, | ||
], | ||
description: "Module sizes to show in treemap by default.", | ||
simpleType: "string", | ||
multiple: false, | ||
}, | ||
"Dont Open": { | ||
configs: [ | ||
{ | ||
type: "boolean", | ||
multiple: false, | ||
description: "Don't open report in default browser automatically", | ||
path: "noOpen", | ||
defaultValue: false, | ||
}, | ||
], | ||
description: "Don't open report in default browser automatically", | ||
simpleType: "boolean", | ||
multiple: false, | ||
}, | ||
port: { | ||
configs: [ | ||
{ | ||
type: "number", | ||
multiple: false, | ||
description: "Port that will be used in `server` mode, default is 8888.", | ||
path: "port", | ||
defaultValue: 8888, | ||
}, | ||
], | ||
description: "Port that will be used in `server` mode, default is 8888.", | ||
simpleType: "number", | ||
multiple: false, | ||
}, | ||
host: { | ||
configs: [ | ||
{ | ||
type: "string", | ||
multiple: false, | ||
description: "Host that will be used in `server` mode, default is 127.0.0.1.", | ||
path: "host", | ||
defaultValue: "127.0.0.1", | ||
}, | ||
], | ||
description: "Host that will be used in `server` mode, default is 127.0.0.1.", | ||
simpleType: "string", | ||
multiple: false, | ||
}, | ||
"log-level": { | ||
configs: [ | ||
{ | ||
type: "enum", | ||
values: ["debug", "info", "warn", "error", "silent"], | ||
multiple: true, | ||
description: "Level of logger (info, warn, error, silent).", | ||
path: "logLevel", | ||
defaultValue: "info", | ||
}, | ||
], | ||
description: "Level of logger (info, warn, error, silent).", | ||
simpleType: "string", | ||
multiple: true, | ||
}, | ||
exclude: { | ||
configs: [ | ||
{ | ||
type: "string", | ||
multiple: false, | ||
description: "Assets that should be excluded from the report.", | ||
path: "exclude", | ||
defaultValue: "", | ||
}, | ||
], | ||
description: "Assets that should be excluded from the report.", | ||
simpleType: "string", | ||
multiple: false, | ||
}, | ||
help: { | ||
configs: [ | ||
{ | ||
type: "boolean", | ||
multiple: false, | ||
description: "output usage information", | ||
path: "help", | ||
}, | ||
], | ||
description: "Output usage information", | ||
simpleType: "boolean", | ||
multiple: false, | ||
}, | ||
}; | ||
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please send it to https://github.com/webpack-contrib/webpack-bundle-analyzer, this PR should be done in
webpack-bundle-analyzer
repo and here we just will read it fromrequire("webpack-bundle-analyzer").cli.arguments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@info-arnav could you do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure on it