This repository has been archived by the owner on Jun 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 141
如何在浏览器中预览weex代码 #43
Comments
Well done! |
thx! 已经部署到Weex官方文档站 http://alibaba.github.io/weex/doc/how-to/preview-in-browser.html 。 |
可是为什么我显示的是源代码 |
@xu17 你应该是看到了webpack编译过的代码,看一下路径 |
@blue0125 你好,我的浏览器显示没有标尺,只有界面,是需要设置什么吗? |
@1903514970 截图是旧版 Chrome。新版 Chrome 默认不显示标尺,需要在 Devtools -> settings 勾选 show rules |
新版中文网站及文档已经上线,请访问 https://weex-project.io/cn/ , 此处后续不再维护,谢谢理解。 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
新版中文网站及文档已经上线,请访问 https://weex-project.io/cn/ , 此处后续不再维护,谢谢理解。
weex-toolkit
我们强烈建议你使用weex-toolkit在浏览器中预览weex代码。这个工具基于NodeJS,所以你需要先安装Node。请从https://nodejs.org/en/download/stable/网站下载安装最新稳定版本的Node。
接下来你就可以通过npm安装weex-toolkit
通过在终端中输入
weex
检查是否可以运行,通常你应该看到如下的帮助文字:假如一切运行正常,终端导航到你想预览的xxx.we所在目录,输入命令:
浏览器窗口将会自动打开显示你想预览的页面:
The text was updated successfully, but these errors were encountered: