diff --git a/packages/remax-cli/src/build/watcher.ts b/packages/remax-cli/src/build/watcher.ts index 2178e8ed5..b56470aec 100644 --- a/packages/remax-cli/src/build/watcher.ts +++ b/packages/remax-cli/src/build/watcher.ts @@ -9,9 +9,9 @@ import build from './index'; let isBundleRunning = false; let isFirstRunWatcher = true; -const rollupWatchFiles = ['src/**', 'app.js']; +const rollupWatchFiles = ['src/**']; // 配置重新build的路径 -const extraFiles = ['src/app.config.js']; +const extraFiles = ['src/**/*.config.js', 'src/native', 'src/native/**']; // chokidar config const chokidarConfig = { usePolling: true,