a tool help user to preview their weex files
npm install weex-previewer --save
var preview = require('weex-previewer');
preview({
entry: 'src/index.vue',
port: 8081
});
npm install weex-previewer -g
weex-previewer src/index.vue
name | Type | Example | Description |
---|---|---|---|
entry | string | 'src/index.vue' | the efile you want to preview |
open | boolean | true | auto open browser |
port | string | 8801 | specify an port for local web server |
wsport | string | 8804 | specify an websocket port for hot reload |
1.3.9
- Fix ip address on server.
- Replace quick-local-ip module with ip module.