1.0.4 • Published 7 years ago

webpack-weex-livereload-plugin v1.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

webpack-weex-livereload-plugin

weex live reload plugin for webpack.

This project is heavily inspired by webpack-livereload-plugin and weex-tookit.

Introduction

LiveReload Weex Pages when running webpack --watch.

Pre-requirements

You need implated a WebSocket connection in your iOS/Android App with Weex ViewController.

You can refer to Weex Playground source code for more details.

Installation

Install the package

npm install --save-dev webpack-weex-livereload-plugin

Add the plugin to your webpack config

// webpack.config.js

var WeexLiveReloadPlugin = require('webpack-livereload-plugin');

module.exports = {
  plugins: [
    new WeexLiveReloadPlugin(options)
  ]
}

Options

  • port - (Default: 8082) The desired port for the livereload server
  • host - (Default: 0.0.0.0) The desired host for the WebSocket server to bind to.
  • ignore - (Default: null) RegExp of files to ignore. Null value means ignore nothing.
  • message - (Default: refresh) The WebSocket message that triggers App to refresh current weex view.
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago