Skip to content

Commit

Permalink
TOOLS (webpack): add size plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sanusart committed Aug 26, 2018
1 parent 6f2cd83 commit 95b12f9
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 2 deletions.
73 changes: 73 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"version": "npm run preversion:readme && npm run preversion:changelog && git add .",
"postversion": "git push",
"precommit": "precise-commits",
"release": "npm version patch",
"release:minor": "npm version minor",
"release": "npm version patch -m \"v%s see [changelog](https://github.com/Gisto/Gisto/blob/master/CHANGELOG.md)\"",
"release:minor": "npm version minor -m \"v%s see [changelog](https://github.com/Gisto/Gisto/blob/master/CHANGELOG.md)\"",
"pack:mac": "cross-env NODE_ENV=production npm run start:prod && npx electron-builder build --m --publish=always",
"pack:win": "cross-env NODE_ENV=production npm run start:prod && npx electron-builder build -w --x64 --ia32 --publish=always",
"pack:linux": "cross-env NODE_ENV=production npm run start:prod && npx electron-builder build --l --x64 --publish=always",
Expand Down Expand Up @@ -108,6 +108,7 @@
"replace": "^1.0.0",
"rimraf": "^2.6.2",
"sinon": "^6.0.1",
"size-plugin": "^1.0.0",
"style-loader": "^0.21.0",
"uglifyjs-webpack-plugin": "^1.2.5",
"webpack": "^4.12.1",
Expand Down
2 changes: 2 additions & 0 deletions webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const path = require('path');
const HtmlWebPackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
const SizePlugin = require('size-plugin');

const packageJson = require('./package.json');

Expand Down Expand Up @@ -43,6 +44,7 @@ module.exports = {
]
},
plugins: [
new SizePlugin(),
new webpack.DefinePlugin({
'global.GENTLY': false,
'process.browser': true
Expand Down

0 comments on commit 95b12f9

Please sign in to comment.