Skip to content

Commit

Permalink
Merge 078f726 into 07953ca
Browse files Browse the repository at this point in the history
  • Loading branch information
XylitolLin committed Nov 1, 2016
2 parents 07953ca + 078f726 commit a445b4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dora plugin for livereload。

```bash
$ npm i dora dora-plugin-webpack dora-plugin-livereload -SD
$ ./node_modules/.bin/dora --plugins 'webpack,livereload?enableJs=true&enableCss=true&enableImg=true&enableAll:false'
$ ./node_modules/.bin/dora --plugins 'webpack,livereload?enableJs=true&enableCss=true&enableImg=true&enableAll:false&port=12345'
```

## Param
Expand All @@ -29,7 +29,8 @@ default:
enableJs:true,
enableCss:true,
enableImg:true,
enableAll:false
enableAll:false,
port: 35729,
}
```
## Test
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import InjectScript from './injectScript';

const localIP = require('internal-ip')();

let lrOpts = {
port: 35729,
};
let lrOpts = { };

let pluginOpts = {
compiler: false,
Expand All @@ -20,6 +18,7 @@ let pluginOpts = {
enableCss: true,
enableImg: true,
enableAll: false,
port: 35729,
};

const ignorePattern = {
Expand Down Expand Up @@ -65,6 +64,7 @@ export default {
const { log } = this;

lrOpts = { ...lrOpts, ...{
port: pluginOpts.port,
errorListener(err) {
log.error(err);
},
Expand Down

0 comments on commit a445b4e

Please sign in to comment.