weexteam / article

This repos is a third party collection, and is not developed nor maintained by Apache Weex.
1.22k stars 141 forks source link

weex中.we或者.vue单个文件如何转化成.js文件,在app本地加载? #192

Open MrGang1992 opened 6 years ago

MrGang1992 commented 6 years ago

weex中.we或者.vue单个文件如何转化成.js文件,在app本地加载?

fengwuxp commented 6 years ago

可以参考一下我的打包配置 https://github.com/fengwuxp/weex_componets/tree/master/webpack-native 本地加载 https://github.com/fengwuxp/weex_componets/blob/master/src/mixins/index.js 参考jump方法

MrGang1992 commented 6 years ago

不对啊 连接打开是404 啊 哥们你是不是发错了?

fengwuxp commented 6 years ago

https://github.com/fengwuxp/weex_componets 项目地址 你自己找一下吧 目录结构sr/mixins/index.js

MrGang1992 commented 6 years ago

谢谢您 ,我刚学 我还不太明白你里面的配置,我就是想单纯的写一个.vue文件,然后就让这个文件转化成.js文件,然后再本地自己做测试(我不知道这样可不可以),你们的打包好像是 ,在某个工程下配置打包 ,然后转化成.js,感谢您的热心回答

fengwuxp commented 6 years ago

额...那看来你要先补充一下webpack的内容吧

MrGang1992 commented 6 years ago

好的 谢谢