From c94bbe1a97aa7a38cb8c902cebff291bf6dd18ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=84=E5=AF=82?= Date: Fri, 1 Jan 2016 00:27:39 +0800 Subject: [PATCH] 0.2.0 --- HISTORY.md | 4 ++++ README.md | 14 ++++++++++++-- package.json | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index a107e92..e917a1b 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,10 @@ --- +# 0.2.0 + +- refactor: use ex. ?{enableJs:false} to handle the logic + ## 0.1.2 - fix: timeout on travis-ci diff --git a/README.md b/README.md index 7f1e6fb..778caf9 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,23 @@ dora plugin for livereload。 ```bash $ npm i dora dora-plugin-livereload -SD -$ ./node_modules/.bin/dora --plugins atool-build,livereload?ignore='.map$' +$ ./node_modules/.bin/dora --plugins atool-build,livereload?{enableJs:true,enableCss:true,enableImg:true,enableAll:false} ``` ## Param -`ignore` : ignore files to livereload , just pass through the pattern like `.map|.jsx?$` +`always ignore .map files` +default: + +```javascript +{ + enableJs:true, + enableCss:true, + enableImg:true, + enableAll:false +} +`` ## Test ```bash diff --git a/package.json b/package.json index b99303c..ed52073 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dora-plugin-livereload", - "version": "0.1.2", + "version": "0.2.0", "repository": { "type": "git", "url": "https://github.com/dora-js/dora-plugin-livereload"