ruler@ruler-ThinkPad-X260:~$ cd /var/www/html/element/ ruler@ruler-ThinkPad-X260:/var/www/html/element$ sudo npm run dev [sudo] ruler 的密码:
element-starter@ dev /var/www/html/element cross-env NODE_ENV=development webpack-dev-server --inline --hot
Project is running at http://localhost:8080/
webpack output is served from /dist/
404s will fallback to /index.html
Hash: 57de2bddf32f11902075
Version: webpack 2.2.0-rc.0
Time: 3280ms
Asset Size Chunks Chunk Names
a61be9cda5272a0c94b957cb630cc970.eot 13.5 kB [emitted]
b02bdc1b846fd65473922f5f62832108.ttf 13.2 kB [emitted]
d2f69a92faa6fe990d2e613c358be705.woff 8 kB [emitted]
element-icons.svg?09162bc124a0849343f0e5b1044ebba2 17.4 kB [emitted]
fec62223c84b60bdc6e03bdf1b398635.svg 96 bytes [emitted]
logo.png?82b9c7a5a3f405032b1db71a25f67021 6.85 kB [emitted]
build.js 3.65 MB 0 [emitted] [big] main
chunk {0} build.js (main) 1.29 MB [entry] [rendered]
[0] ./~/inherits/inherits_browser.js 672 bytes {0} [built]
[1] ./~/process/browser.js 5.3 kB {0} [built]
[2] (webpack)/buildin/global.js 506 bytes {0} [built]
[3] ./~/debug/browser.js 4.57 kB {0} [built]
[4] ./~/async-validator/lib/util.js 5.09 kB {0} [built]
[5] ./~/async-validator/lib/rule/index.js 333 bytes {0} [built]
[6] ./~/sockjs-client/lib/event/emitter.js 1.27 kB {0} [built]
[7] ./~/sockjs-client/lib/utils/url.js 975 bytes {0} [built]
[8] ./~/json3/lib/json3.js 43.3 kB {0} [built]
[9] ./~/sockjs-client/lib/utils/event.js 2 kB {0} [built]
[10] ./~/element-ui/lib/mixins/emitter.js 1.01 kB {0} [built]
[11] ./~/sockjs-client/lib/transport/lib/ajax-based.js 1.31 kB {0} [built]
[12] ./~/sockjs-client/lib/utils/random.js 746 bytes {0} [built]
[13] ./~/sockjs-client/lib/transport/sender/xhr-local.js 352 bytes {0} [built]
[14] ./~/sockjs-client/lib/utils/browser.js 560 bytes {0} [built]
[15] ./~/sockjs-client/lib/utils/iframe.js 5.06 kB {0} [built]
[16] ./~/vue/dist/vue.runtime.common.js 155 kB {0} [built]
[17] ./~/sockjs-client/lib/transport/receiver/xhr.js 1.58 kB {0} [built]
[18] ./~/sockjs-client/lib/transport/sender/xhr-cors.js 343 bytes {0} [built]
[19] ./~/async-validator/lib/validator/type.js 898 bytes {0} [built]
[20] ./~/css-loader!./~/element-ui/lib/theme-default/index.css 103 kB {0} [built]
[21] ./~/css-loader?sourceMap!./~/vue-loader/lib/style-rewriter.js?id=data-v-f2dc3b60!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue 987 bytes {0} [built]
[22] ./~/element-ui/lib/input.js 11.5 kB {0} [built]
[23] ./~/element-ui/lib/locale/index.js 1.43 kB {0} [built]
[24] ./~/element-ui/lib/utils/vue-popper.js 4.83 kB {0} [built]
[25] ./~/sockjs-client/lib/event/event.js 477 bytes {0} [built]
[26] ./~/sockjs-client/lib/transport/lib/iframe-wrap.js 981 bytes {0} [built]
[27] ./~/sockjs-client/lib/transport/sender/xdr.js 2.46 kB {0} [built]
[28] ./~/sockjs-client/lib/utils/object.js 532 bytes {0} [built]
[29] ./~/url-parse/index.js 9.92 kB {0} [built]
[30] ./~/wind-dom/src/event.js 1.07 kB {0} [built]
[31] ./~/async-validator/lib/rule/required.js 1.13 kB {0} [built]
[32] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
[33] ./~/element-ui/lib/mixins/locale.js 341 bytes {0} [built]
[34] ./~/element-ui/lib/tag.js 3.8 kB {0} [built]
[35] ./~/element-ui/lib/utils/clickoutside.js 1.4 kB {0} [built]
[36] ./~/element-ui/lib/utils/resize-event.js 5.87 kB {0} [built]
[37] ./~/sockjs-client/lib/event/eventtarget.js 1.85 kB {0} [built]
[38] ./~/sockjs-client/lib/info-ajax.js 1.03 kB {0} [built]
[39] ./~/sockjs-client/lib/info-iframe-receiver.js 791 bytes {0} [built]
[40] ./~/sockjs-client/lib/location.js 177 bytes {0} [built]
[41] ./~/sockjs-client/lib/transport/browser/abstract-xhr.js 4.8 kB {0} [built]
[42] ./~/sockjs-client/lib/transport/browser/eventsource.js 37 bytes {0} [built]
[43] ./~/sockjs-client/lib/transport/eventsource.js 766 bytes {0} [built]
[44] ./~/sockjs-client/lib/transport/htmlfile.js 710 bytes {0} [built]
[45] ./~/sockjs-client/lib/transport/iframe.js 3.83 kB {0} [built]
[46] ./~/sockjs-client/lib/transport/lib/sender-receiver.js 1.15 kB {0} [built]
[47] ./~/sockjs-client/lib/transport/xdr-streaming.js 984 bytes {0} [built]
[48] ./~/sockjs-client/lib/transport/xhr-polling.js 894 bytes {0} [built]
[49] ./~/sockjs-client/lib/version.js 26 bytes {0} [built]
[50] ./~/throttle-debounce/debounce.js 1.38 kB {0} [built]
[51] ./~/throttle-debounce/throttle.js 3.53 kB {0} [built]
[52] ./~/vue-hot-reload-api/index.js 3.07 kB {0} [built]
[53] ./~/vue-popup/lib/index.js 7.95 kB {0} [built]
[54] (webpack)/buildin/module.js 548 bytes {0} [built]
[55] (webpack)/hot/emitter.js 77 bytes {0} [built]
[56] ./~/wind-dom/src/class.js 1.46 kB {0} [built]
[57] ./src/main.js 240 bytes {0} [built]
[58] (webpack)-dev-server/client?http://localhost:8080 4.66 kB {0} [built]
[59] (webpack)/hot/dev-server.js 1.57 kB {0} [built]
[60] ./~/ansi-regex/index.js 135 bytes {0} [built]
[61] ./~/async-validator/lib/index.js 8.54 kB {0} [built]
[62] ./~/async-validator/lib/messages.js 1.85 kB {0} [built]
[63] ./~/async-validator/lib/rule/enum.js 1.19 kB {0} [built]
[64] ./~/async-validator/lib/rule/pattern.js 1.15 kB {0} [built]
[65] ./~/async-validator/lib/rule/range.js 2.15 kB {0} [built]
[66] ./~/async-validator/lib/rule/type.js 3.97 kB {0} [built]
[67] ./~/async-validator/lib/rule/whitespace.js 1.07 kB {0} [built]
[68] ./~/async-validator/lib/validator/array.js 1.26 kB {0} [built]
[69] ./~/async-validator/lib/validator/boolean.js 1.16 kB {0} [built]
[70] ./~/async-validator/lib/validator/date.js 1.05 kB {0} [built]
[71] ./~/async-validator/lib/validator/enum.js 1.18 kB {0} [built]
[72] ./~/async-validator/lib/validator/float.js 1.26 kB {0} [built]
[73] ./~/async-validator/lib/validator/index.js 522 bytes {0} [built]
[74] ./~/async-validator/lib/validator/integer.js 1.24 kB {0} [built]
[75] ./~/async-validator/lib/validator/method.js 1.16 kB {0} [built]
[76] ./~/async-validator/lib/validator/number.js 1.23 kB {0} [built]
[77] ./~/async-validator/lib/validator/object.js 1.16 kB {0} [built]
[78] ./~/async-validator/lib/validator/pattern.js 1.33 kB {0} [built]
[79] ./~/async-validator/lib/validator/regexp.js 1.19 kB {0} [built]
[80] ./~/async-validator/lib/validator/required.js 880 bytes {0} [built]
[81] ./~/async-validator/lib/validator/string.js 1.48 kB {0} [built]
[82] ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/App.vue 379 bytes {0} [built]
[83] ./~/debug/debug.js 4.32 kB {0} [built]
[84] ./~/deepmerge/index.js 2.83 kB {0} [built]
[85] ./~/element-ui/lib/button.js 4.25 kB {0} [built]
[86] ./~/element-ui/lib/checkbox-group.js 3.76 kB {0} [built]
[87] ./~/element-ui/lib/checkbox.js 8.29 kB {0} [built]
[88] ./~/element-ui/lib/element-ui.common.js 535 kB {0} [built]
[89] ./~/element-ui/lib/input-number.js 10.4 kB {0} [built]
[90] ./~/element-ui/lib/locale/format.js 1.41 kB {0} [built]
[91] ./~/element-ui/lib/locale/lang/zh-CN.js 1.64 kB {0} [built]
[92] ./~/element-ui/lib/mixins/migrating.js 1.62 kB {0} [built]
[93] ./~/element-ui/lib/option.js 7.04 kB {0} [built]
[94] ./~/element-ui/lib/progress.js 7.38 kB {0} [built]
[95] ./~/element-ui/lib/select.js 34.7 kB {0} [built]
[96] ./~/element-ui/lib/tooltip.js 5.19 kB {0} [built]
[97] ./~/element-ui/lib/utils/date.js 9.31 kB {0} [built]
[98] ./~/element-ui/lib/utils/merge.js 396 bytes {0} [built]
[99] ./~/element-ui/lib/utils/popper.js 49.5 kB {0} [built]
[100] ./~/events/events.js 8.33 kB {0} [built]
[101] ./~/element-ui/lib/theme-default/fonts/element-icons.eot?t=1472440741 82 bytes {0} [built]
[102] ./~/element-ui/lib/theme-default/fonts/element-icons.ttf?t=1472440741 82 bytes {0} [built]
[103] ./~/element-ui/lib/theme-default/fonts/element-icons.woff?t=1472440741 83 bytes {0} [built]
[104] ./~/element-ui/lib/theme-default/fonts/element-icons.svg?t=1472440741 82 bytes {0} [built]
[105] ./src/assets/logo.png 87 bytes {0} [built]
[106] ./~/ms/index.js 2.72 kB {0} [built]
[107] ./~/punycode/punycode.js 14.7 kB {0} [built]
[108] ./~/querystring-es3/decode.js 2.51 kB {0} [built]
[109] ./~/querystring-es3/encode.js 2.54 kB {0} [built]
[110] ./~/querystring-es3/index.js 127 bytes {0} [built]
[111] ./~/querystringify/index.js 1.3 kB {0} [built]
[112] ./~/requires-port/index.js 753 bytes {0} [built]
[113] ./~/sockjs-client/lib/entry.js 244 bytes {0} [built]
[114] ./~/sockjs-client/lib/event/close.js 295 bytes {0} [built]
[115] ./~/sockjs-client/lib/event/trans-message.js 292 bytes {0} [built]
[116] ./~/sockjs-client/lib/facade.js 723 bytes {0} [built]
[117] ./~/sockjs-client/lib/iframe-bootstrap.js 2.9 kB {0} [built]
[118] ./~/sockjs-client/lib/info-iframe.js 1.52 kB {0} [built]
[119] ./~/sockjs-client/lib/info-receiver.js 2.22 kB {0} [built]
[120] ./~/sockjs-client/lib/main.js 11.9 kB {0} [built]
[121] ./~/sockjs-client/lib/shims.js 18.2 kB {0} [built]
[122] ./~/sockjs-client/lib/transport-list.js 613 bytes {0} [built]
[123] ./~/sockjs-client/lib/transport/browser/websocket.js 172 bytes {0} [built]
[124] ./~/sockjs-client/lib/transport/jsonp-polling.js 1.02 kB {0} [built]
[125] ./~/sockjs-client/lib/transport/lib/buffered-sender.js 2.3 kB {0} [built]
[126] ./~/sockjs-client/lib/transport/lib/polling.js 1.32 kB {0} [built]
[127] ./~/sockjs-client/lib/transport/receiver/eventsource.js 1.58 kB {0} [built]
[128] ./~/sockjs-client/lib/transport/receiver/htmlfile.js 2.2 kB {0} [built]
[129] ./~/sockjs-client/lib/transport/receiver/jsonp.js 5.57 kB {0} [built]
[130] ./~/sockjs-client/lib/transport/sender/jsonp.js 2.46 kB {0} [built]
[131] ./~/sockjs-client/lib/transport/sender/xhr-fake.js 456 bytes {0} [built]
[132] ./~/sockjs-client/lib/transport/websocket.js 2.71 kB {0} [built]
[133] ./~/sockjs-client/lib/transport/xdr-polling.js 712 bytes {0} [built]
[134] ./~/sockjs-client/lib/transport/xhr-streaming.js 1.25 kB {0} [built]
[135] ./~/sockjs-client/lib/utils/browser-crypto.js 438 bytes {0} [built]
[136] ./~/sockjs-client/lib/utils/escape.js 2.31 kB {0} [built]
[137] ./~/sockjs-client/lib/utils/log.js 450 bytes {0} [built]
[138] ./~/sockjs-client/lib/utils/transport.js 1.35 kB {0} [built]
[139] ./~/strip-ansi/index.js 161 bytes {0} [built]
[140] ./~/style-loader/addStyles.js 7.15 kB {0} [built]
[141] ./~/element-ui/lib/theme-default/index.css 879 bytes {0} [built]
[142] ./~/url-parse/lolcation.js 1.58 kB {0} [built]
[143] ./~/url/url.js 23.3 kB {0} [built]
[144] ./~/url/util.js 314 bytes {0} [built]
[145] ./src/App.vue 1.73 kB {0} [built]
[146] ./~/vue-loader/lib/template-compiler.js?id=data-v-f2dc3b60!./~/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue 614 bytes {0} [built]
[147] ./~/vue-style-loader/addStyles.js 6.24 kB {0} [built]
[148] ./~/vue-style-loader!./~/css-loader?sourceMap!./~/vue-loader/lib/style-rewriter.js?id=data-v-f2dc3b60!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue 1.34 kB {0} [built]
[149] (webpack)-dev-server/client/socket.js 856 bytes {0} [built]
[150] (webpack)/buildin/amd-options.js 43 bytes {0} [built]
[151] (webpack)/hot/log-apply-result.js 1.02 kB {0} [built]
[152] ./~/wind-dom/src/style.js 1.94 kB {0} [built]
[153] multi main 52 bytes {0} [built]
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (250 kB). This can impact web performance. Assets: build.js (3.65 MB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (250 kB). This can impact web performance. Entrypoints: main (3.65 MB) build.js
WARNING in webpack performance recommendations: You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application. For more info visit https://webpack.js.org/guides/code-splitting/
1
keikeizhang OP 其实看最后几行就好了,就是我执行 npm run dev 以后跑出来的
ubuntu 16 问的别人都是几百 k 我的什么都没有引入都能 1.2M 全部 引入就是 3-4M |
2
ss098 2016-12-16 17:13:19 +08:00
npm run prod
|
3
murmur 2016-12-16 17:15:14 +08:00
装一个 gzip-size 没事 prod 预估一下多少就可以 一般 dev 了就可以到六七百 k 了 然后 gz 一下就 200k 上 cdn 一缓存就不是事了
|
4
keikeizhang OP @murmur 只是感觉这差距也太大了
|