Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
build: 配置文件和native文件改动也会自动构建
Browse files Browse the repository at this point in the history
  • Loading branch information
Darmody committed Aug 30, 2019
1 parent f2f15ba commit 31b960a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/remax-cli/src/build/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 31b960a

Please sign in to comment.