node package manager

weex-previewer

a tool help user to preview their weex files

weex-previewer

npm

a tool help user to preview their weex files

how to use

npm install weex-previewer
var preview = require('weex-previewer');
preview({
  host: "192.168.34.19",
  entry: 'src/index.vue'   
});
 

Options

name Type Example Description
entry string 'src/index.vue' the efile you want to preview
qr boolean false show QRcode in command line
smallqr boolean false show a smaller QRcode in command line
open boolean true auto open browser
host string 30.30.31.29 specify an host for mobile device to preview
port string 8801 specify an port for local web server
websocketPort string 8804 specify an websocket port for hot reload
output string dist specify an directory for bundle files