Authored by 陈峰

bundle anlye

@@ -43,14 +43,15 @@ @@ -43,14 +43,15 @@
43 "serve-favicon": "^2.3.0", 43 "serve-favicon": "^2.3.0",
44 "uuid": "^2.0.2", 44 "uuid": "^2.0.2",
45 "vue": "^2.4.2", 45 "vue": "^2.4.2",
  46 + "vue-awesome-swiper": "^2.5.4",
  47 + "vue-swipe": "^2.0.3",
46 "vue-touch": "next", 48 "vue-touch": "next",
47 "winston": "^2.2.0", 49 "winston": "^2.2.0",
48 "winston-daily-rotate-file": "^1.3.0", 50 "winston-daily-rotate-file": "^1.3.0",
  51 + "yoho-cookie": "1.2.0",
49 "yoho-jquery": "^2.2.4", 52 "yoho-jquery": "^2.2.4",
50 "yoho-md5": "^2.0.0", 53 "yoho-md5": "^2.0.0",
51 - "vue-swipe": "^2.0.3",  
52 "yoho-node-lib": "0.2.17", 54 "yoho-node-lib": "0.2.17",
53 - "yoho-cookie": "1.2.0",  
54 "yoho-qs": "1.0.1", 55 "yoho-qs": "1.0.1",
55 "yoho-store": "^1.3.20" 56 "yoho-store": "^1.3.20"
56 }, 57 },
@@ -80,14 +81,14 @@ @@ -80,14 +81,14 @@
80 "postcss-calc": "^5.3.1", 81 "postcss-calc": "^5.3.1",
81 "postcss-center": "^1.0.0", 82 "postcss-center": "^1.0.0",
82 "postcss-clearfix": "^1.0.0", 83 "postcss-clearfix": "^1.0.0",
  84 + "postcss-crip": "^2.0.1",
  85 + "postcss-import": "^10.0.0",
83 "postcss-loader": "^2.0.5", 86 "postcss-loader": "^2.0.5",
84 "postcss-position": "^0.5.0", 87 "postcss-position": "^0.5.0",
85 "postcss-pxtorem": "^3.3.1", 88 "postcss-pxtorem": "^3.3.1",
86 "postcss-scss": "^1.0.0", 89 "postcss-scss": "^1.0.0",
87 "postcss-short": "^1.4.0", 90 "postcss-short": "^1.4.0",
88 "postcss-sprites": "^4.2.1", 91 "postcss-sprites": "^4.2.1",
89 - "postcss-crip": "^2.0.1",  
90 - "postcss-import": "^10.0.0",  
91 "postcss-use": "^2.3.0", 92 "postcss-use": "^2.3.0",
92 "precss": "^1.4.0", 93 "precss": "^1.4.0",
93 "sass-loader": "^6.0.6", 94 "sass-loader": "^6.0.6",
@@ -97,7 +98,6 @@ @@ -97,7 +98,6 @@
97 "stylelint": "^7.1.0", 98 "stylelint": "^7.1.0",
98 "stylelint-config-yoho": "^1.2.7", 99 "stylelint-config-yoho": "^1.2.7",
99 "stylelint-processor-html": "^1.0.0", 100 "stylelint-processor-html": "^1.0.0",
100 - "vue-awesome-swiper": "^2.5.4",  
101 "vue-hot-reload-api": "^1.2.0", 101 "vue-hot-reload-api": "^1.2.0",
102 "vue-html-loader": "^1.2.4", 102 "vue-html-loader": "^1.2.4",
103 "vue-infinite-scroll": "^2.0.1", 103 "vue-infinite-scroll": "^2.0.1",
@@ -106,12 +106,12 @@ @@ -106,12 +106,12 @@
106 "vue-style-loader": "^3.0.1", 106 "vue-style-loader": "^3.0.1",
107 "vue-template-compiler": "^2.4.2", 107 "vue-template-compiler": "^2.4.2",
108 "webpack": "3.3", 108 "webpack": "3.3",
109 - "webpack-bundle-analyzer": "^2.8.2", 109 + "webpack-bundle-analyzer": "^2.9.0",
110 "webpack-dashboard": "^0.1.8", 110 "webpack-dashboard": "^0.1.8",
111 "webpack-dev-server": "^2.6.1", 111 "webpack-dev-server": "^2.6.1",
112 "webpack-merge": "^4.1.0", 112 "webpack-merge": "^4.1.0",
  113 + "webpack-stream": "^3.1.0",
113 "webpack-uglify-parallel": "^0.1.3", 114 "webpack-uglify-parallel": "^0.1.3",
114 - "webpack-visualizer-plugin": "^0.1.11",  
115 - "webpack-stream": "^3.1.0" 115 + "webpack-visualizer-plugin": "^0.1.11"
116 } 116 }
117 } 117 }
@@ -23,6 +23,11 @@ if (process.env.NODE_ENV === 'performance') { @@ -23,6 +23,11 @@ if (process.env.NODE_ENV === 'performance') {
23 }); 23 });
24 } 24 }
25 25
  26 +if (process.env.npm_config_report) {
  27 + let BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
  28 +
  29 + base.plugins.push(new BundleAnalyzerPlugin());
  30 +}
26 31
27 module.exports = merge(base, { 32 module.exports = merge(base, {
28 output: { 33 output: {
@@ -7921,9 +7921,9 @@ wbuf@^1.1.0, wbuf@^1.7.2: @@ -7921,9 +7921,9 @@ wbuf@^1.1.0, wbuf@^1.7.2:
7921 dependencies: 7921 dependencies:
7922 minimalistic-assert "^1.0.0" 7922 minimalistic-assert "^1.0.0"
7923 7923
7924 -webpack-bundle-analyzer@^2.8.2:  
7925 - version "2.8.3"  
7926 - resolved "http://npm.yoho.cn/webpack-bundle-analyzer/-/webpack-bundle-analyzer-2.8.3.tgz#8e7b3deb3832698c24b09c84dfe5b43902a83991" 7924 +webpack-bundle-analyzer@^2.9.0:
  7925 + version "2.9.0"
  7926 + resolved "http://npm.yoho.cn/webpack-bundle-analyzer/-/webpack-bundle-analyzer-2.9.0.tgz#b58bc34cc30b27ffdbaf3d00bf27aba6fa29c6e3"
7927 dependencies: 7927 dependencies:
7928 acorn "^5.1.1" 7928 acorn "^5.1.1"
7929 chalk "^1.1.3" 7929 chalk "^1.1.3"