Skip to content

Commit

Permalink
chore(webpack): analyze size
Browse files Browse the repository at this point in the history
  • Loading branch information
commenthol committed Jan 6, 2021
1 parent 76a4ba8 commit 35d34cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"test:ts": "dtslint types",
"watch": "watch-run -p data/countries/*.yaml npm run yaml",
"webpack": "webpack",
"webpack:analyze": "webpack",
"yaml": "node scripts/holidays2json.js"
},
"husky": {
Expand Down Expand Up @@ -222,7 +223,7 @@
"uglifyjs-webpack-plugin": "^2.2.0",
"watch-run": "^1.2.5",
"webpack": "^4.44.2",
"webpack-bundle-analyzer": "^3.9.0",
"webpack-bundle-analyzer": "^4.3.0",
"webpack-cli": "^3.3.12"
},
"engines": {
Expand Down
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const doAnalyze = process.env.npm_lifecycle_event === 'webpack:analyze'

const variants = doAnalyze
? {
target: ['commonjs2']
target: [
['commonjs2', 'index']
]
}
: {
minified: [true],
Expand Down

0 comments on commit 35d34cd

Please sign in to comment.