From a80ac1c28e821770d80aff66366ddefc0c1c28a2 Mon Sep 17 00:00:00 2001 From: exbatek Date: Sat, 27 Jun 2020 00:23:49 +0500 Subject: [PATCH] Add .vue file tracking See https://github.com/bitrix-tools/cli/issues/13 Fix #13 --- src/tools/watch.js | 1 + src/utils/is-allowed.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/tools/watch.js b/src/tools/watch.js index 3a6bf8b..e208ba3 100644 --- a/src/tools/watch.js +++ b/src/tools/watch.js @@ -21,6 +21,7 @@ function createPattern(directories) { acc.push(slash(path.resolve(currentConfig.context, '**/*.js'))); acc.push(slash(path.resolve(currentConfig.context, '**/*.css'))); acc.push(slash(path.resolve(currentConfig.context, '**/*.scss'))); + acc.push(slash(path.resolve(currentConfig.context, '**/*.vue'))); }); return acc; diff --git a/src/utils/is-allowed.js b/src/utils/is-allowed.js index f0c9de3..0cebd9a 100644 --- a/src/utils/is-allowed.js +++ b/src/utils/is-allowed.js @@ -23,6 +23,7 @@ export default function isAllowed(fileName) { switch (ext) { case '.js': case '.jsx': + case '.vue': case '.css': case '.scss': return true;