-
├── configs
│ ├── configA.ts
│ └── configB.ts
├── src
└── rsbuild.config.ts rsbuild config import configA from './configs/configA';
import configB from './configs/configA';
export default defineConfig(async () => {
return {
['propA']: configA,
['propB']: configB,
// some general configs
};
}); How to listen for 'configs' folder or 'configA/B.ts' file to change and re-run |
Beta Was this translation helpful? Give feedback.
Answered by
liyincode
Aug 29, 2024
Replies: 1 comment 1 reply
-
in
You can use this configuration to listen to the configA.ts and configB.ts files separately Any change in the contents of the file triggers a devServer restart |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
chenjiahan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dev.watchFiles
in
rsbuild.config.ts
You can use this configuration to listen to the configA.ts and configB.ts files separately
Or use
paths: ['. /configs/*.ts']
listen on all ts files in the configs directoryAny change in the contents of the file triggers a devServer restart