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

vux如果不通过node_modules引用 而是直接放到项目里(自己做了些改写)这种情况下vux-loader要怎么配置使用呢 #14

Open
yuezheng2006 opened this issue Apr 26, 2017 · 3 comments

Comments

@yuezheng2006
Copy link

yuezheng2006 commented Apr 26, 2017

wechatimg34

@airyland
Copy link
Owner

话说这样折腾不推荐。暂时 vux-loader 没有选项可以修改 vux 组件库所在路径。

@yuezheng2006
Copy link
Author

目前只能放到node_modules里是吧?我看你vux-loader里源码里面提供了options.vuxDev选项

if (hasPlugin('vux-ui', vuxConfig.plugins)) { let mapPath = path.resolve(vuxConfig.options.projectRoot, 'node_modules/vux/src/components/map.json') if (vuxConfig.options.vuxDev) { mapPath = path.resolve(vuxConfig.options.projectRoot, 'src/components/map.json') }

这里的起什么作用呢?

@airyland
Copy link
Owner

仅针对源码结构作路径修改,其他情况无法使用。

Repository owner deleted a comment from huang34 Aug 24, 2017
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