Authored by 陈峰

bundle anlye

... ... @@ -43,14 +43,15 @@
"serve-favicon": "^2.3.0",
"uuid": "^2.0.2",
"vue": "^2.4.2",
"vue-awesome-swiper": "^2.5.4",
"vue-swipe": "^2.0.3",
"vue-touch": "next",
"winston": "^2.2.0",
"winston-daily-rotate-file": "^1.3.0",
"yoho-cookie": "1.2.0",
"yoho-jquery": "^2.2.4",
"yoho-md5": "^2.0.0",
"vue-swipe": "^2.0.3",
"yoho-node-lib": "0.2.17",
"yoho-cookie": "1.2.0",
"yoho-qs": "1.0.1",
"yoho-store": "^1.3.20"
},
... ... @@ -80,14 +81,14 @@
"postcss-calc": "^5.3.1",
"postcss-center": "^1.0.0",
"postcss-clearfix": "^1.0.0",
"postcss-crip": "^2.0.1",
"postcss-import": "^10.0.0",
"postcss-loader": "^2.0.5",
"postcss-position": "^0.5.0",
"postcss-pxtorem": "^3.3.1",
"postcss-scss": "^1.0.0",
"postcss-short": "^1.4.0",
"postcss-sprites": "^4.2.1",
"postcss-crip": "^2.0.1",
"postcss-import": "^10.0.0",
"postcss-use": "^2.3.0",
"precss": "^1.4.0",
"sass-loader": "^6.0.6",
... ... @@ -97,7 +98,6 @@
"stylelint": "^7.1.0",
"stylelint-config-yoho": "^1.2.7",
"stylelint-processor-html": "^1.0.0",
"vue-awesome-swiper": "^2.5.4",
"vue-hot-reload-api": "^1.2.0",
"vue-html-loader": "^1.2.4",
"vue-infinite-scroll": "^2.0.1",
... ... @@ -106,12 +106,12 @@
"vue-style-loader": "^3.0.1",
"vue-template-compiler": "^2.4.2",
"webpack": "3.3",
"webpack-bundle-analyzer": "^2.8.2",
"webpack-bundle-analyzer": "^2.9.0",
"webpack-dashboard": "^0.1.8",
"webpack-dev-server": "^2.6.1",
"webpack-merge": "^4.1.0",
"webpack-stream": "^3.1.0",
"webpack-uglify-parallel": "^0.1.3",
"webpack-visualizer-plugin": "^0.1.11",
"webpack-stream": "^3.1.0"
"webpack-visualizer-plugin": "^0.1.11"
}
}
... ...
... ... @@ -23,6 +23,11 @@ if (process.env.NODE_ENV === 'performance') {
});
}
if (process.env.npm_config_report) {
let BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
base.plugins.push(new BundleAnalyzerPlugin());
}
module.exports = merge(base, {
output: {
... ...
... ... @@ -7921,9 +7921,9 @@ wbuf@^1.1.0, wbuf@^1.7.2:
dependencies:
minimalistic-assert "^1.0.0"
webpack-bundle-analyzer@^2.8.2:
version "2.8.3"
resolved "http://npm.yoho.cn/webpack-bundle-analyzer/-/webpack-bundle-analyzer-2.8.3.tgz#8e7b3deb3832698c24b09c84dfe5b43902a83991"
webpack-bundle-analyzer@^2.9.0:
version "2.9.0"
resolved "http://npm.yoho.cn/webpack-bundle-analyzer/-/webpack-bundle-analyzer-2.9.0.tgz#b58bc34cc30b27ffdbaf3d00bf27aba6fa29c6e3"
dependencies:
acorn "^5.1.1"
chalk "^1.1.3"
... ...