diff --git a/lib/build/tasks.js b/lib/build/tasks.js index 7d497738d2..53421167d2 100644 --- a/lib/build/tasks.js +++ b/lib/build/tasks.js @@ -119,7 +119,8 @@ function generateCss (sassPath, cssPath, options = {}) { function watchSass (sassPath, generateSassPath, cssPath, options) { if (!fse.existsSync(sassPath)) return chokidar.watch(sassPath, { - ignoreInitial: true + ignoreInitial: true, + disableGlobbing: true // Prevents square brackets from being mistaken for globbing characters }).on('all', () => { generateCss(generateSassPath, cssPath, options) }) diff --git a/lib/extensions/extensions.js b/lib/extensions/extensions.js index 2aebb36126..bc2cad069f 100644 --- a/lib/extensions/extensions.js +++ b/lib/extensions/extensions.js @@ -240,6 +240,7 @@ let previousPlugins = getCurrentPlugins() function watchPlugins (afterWatch) { chokidar.watch(pkgPath, { ignoreInitial: true, + disableGlobbing: true, // Prevents square brackets from being mistaken for globbing characters awaitWriteFinish: true }).on('change', () => { const currentPlugins = getCurrentPlugins()