chore(build): add a way to check times of webpack build

pull/2670/head
Chaim Lev-Ari 2018-11-29 15:38:42 +02:00
parent b44b1202b0
commit ea496c1acb
3 changed files with 16 additions and 1 deletions

View File

@ -108,6 +108,7 @@
"mini-css-extract-plugin": "^0.4.4",
"ngtemplate-loader": "^2.0.1",
"postcss-loader": "^3.0.0",
"speed-measure-webpack-plugin": "^1.2.3",
"style-loader": "^0.23.1",
"url-loader": "^1.1.1",
"webpack": "^4.26.0",

View File

@ -0,0 +1,7 @@
const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');
const smp = new SpeedMeasurePlugin();
const devConfig = require('./webpack.develop.js');
// const prodConfig = require('./webpack.production.js');
module.exports = smp.wrap(devConfig);

View File

@ -1743,7 +1743,7 @@ chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:
strip-ansi "^3.0.0"
supports-color "^2.0.0"
chalk@^2.0.0, chalk@^2.4.1:
chalk@^2.0.0, chalk@^2.0.1, chalk@^2.4.1:
version "2.4.1"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
integrity sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==
@ -8353,6 +8353,13 @@ spdx-license-ids@^1.0.2:
resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57"
integrity sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=
speed-measure-webpack-plugin@^1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/speed-measure-webpack-plugin/-/speed-measure-webpack-plugin-1.2.3.tgz#de170b5cefbfa1c039d95e639edd3ad50cfc7c48"
integrity sha512-p+taQ69VkRUXYMoZOx2nxV/Tz8tt79ahctoZJyJDHWP7fEYvwFNf5Pd73k5kZ6auu0pTsPNLEUwWpM8mCk85Zw==
dependencies:
chalk "^2.0.1"
split-string@^3.0.1, split-string@^3.0.2:
version "3.1.0"
resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2"