vux打包后的文件体积过大

Created on 15 Jun 2017  ·  4Comments  ·  Source: airyland/vux

我代码中使用到vux的地方只有2处

第一处是这里
image

第二处是这里:

image

用webpack打包后的依赖报表如下:

image

其中尤以这个datas为最 有800多K

这里大部分的组件我都没用使用到 要怎样才能不打包到我的文件里面来?

Most helpful comment

哈哈,这不是我昨天提的那个问题么-

All 4 comments

哈哈,这不是我昨天提的那个问题么-

@greedying 看了一下你昨天的issue 果然是同一个问题。。 升级一下vuxloader就可以了。。。 谢谢。。。

@RenShine 请问你这个报表是用什么工具实现的?还有,我升级了vux-loader.....好像打包出来还是很大。。。一个简单的页面就有 1.4M.....

@bigheiqin https://www.npmjs.com/package/webpack-bundle-analyzer 不好意思回复晚了

Was this page helpful?
0 / 5 - 0 ratings