lint
This commit is contained in:
parent
c0dbb8635c
commit
1fe4a08e71
3 changed files with 4 additions and 4 deletions
|
|
@ -130,7 +130,7 @@ function run(input, output) {
|
|||
module.exports = function(input, output, options) {
|
||||
run(input, output)
|
||||
if (options && options.watch) {
|
||||
fs.watch(process.cwd(), {recursive: true}, function(file, type) {
|
||||
fs.watch(process.cwd(), {recursive: true}, function(file) {
|
||||
if (typeof file === "string" && path.resolve(output) !== path.resolve(file)) run(input, output)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue