vux-loader icon indicating copy to clipboard operation
vux-loader copied to clipboard

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

Open yuezheng2006 opened this issue 7 years ago • 3 comments

wechatimg34

yuezheng2006 avatar Apr 26 '17 08:04 yuezheng2006

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

airyland avatar Apr 26 '17 10:04 airyland

目前只能放到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') }

这里的起什么作用呢?

yuezheng2006 avatar Apr 27 '17 02:04 yuezheng2006

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

airyland avatar Apr 27 '17 02:04 airyland