Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run build 打包后 routes里所有的js都会被单独打包到dist中 #30

Closed
succulen-plants opened this issue Jan 18, 2018 · 2 comments

Comments

@succulen-plants
Copy link

没弄明白什么地方导致这样的结果, 暂时不需要这样的打包配置

@duxianwei520
Copy link
Owner

@succulen-plants routes里面的js默认是按照路由做了按需加载的,如果你不想用按需加载的话,那就跟route.js里面的APP这个component一样,不用getComponent加载,直接用component引入就好了

@succulen-plants
Copy link
Author

好的,学习了, 谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants