Skip to content

Commit

Permalink
fixed watchOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Jan 3, 2018
1 parent d6a45bc commit d78e13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wepy-cli/src/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default {
let wepyrc = util.getConfig();
let src = config.source || wepyrc.src || 'src';
let dist = config.output || wepyrc.output || 'dist';
chokidar.watch(`.${path.sep}${src}`, config.watchOption || {}).on('all', (evt, filepath) => {
chokidar.watch(`.${path.sep}${src}`, wepyrc.watchOption || {}).on('all', (evt, filepath) => {
if ((evt === 'change' || evt === 'add') && watchReady && !preventDup[filepath]) {
preventDup[filepath] = evt;
config.file = path.join('..', filepath);
Expand Down

0 comments on commit d78e13a

Please sign in to comment.