https://github.com/daxingplay/webpack-weex-livereload-plugin
weex live reload plugin for webpack
https://github.com/daxingplay/webpack-weex-livereload-plugin
webpack webpack-livereload-plugin webpack-plugin weex
Last synced: 3 months ago
JSON representation
weex live reload plugin for webpack
- Host: GitHub
- URL: https://github.com/daxingplay/webpack-weex-livereload-plugin
- Owner: daxingplay
- License: mit
- Created: 2016-12-21T08:39:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-15T03:41:53.000Z (over 8 years ago)
- Last Synced: 2025-06-28T10:05:00.771Z (3 months ago)
- Topics: webpack, webpack-livereload-plugin, webpack-plugin, weex
- Language: JavaScript
- Size: 5.86 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webpack-weex-livereload-plugin
weex live reload plugin for webpack.This project is heavily inspired by [webpack-livereload-plugin](https://github.com/statianzo/webpack-livereload-plugin) and [weex-tookit](https://github.com/weexteam/weex-toolkit).
## 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](https://github.com/alibaba/weex/blob/dev/ios/playground/) for more details.
## Installation
Install the package
```
npm install --save-dev webpack-weex-livereload-plugin
```Add the plugin to your webpack config
```js
// webpack.config.jsvar WeexLiveReloadPlugin = require('webpack-weex-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.