How to disable hmr and liveReload for a specific entry point? #5728
-
如下是多入口项目,我想为入口 background 禁用 hmr 和 liveReload,其他入口保留 hmr 和 liveReload,应该如何实现?
|
Beta Was this translation helpful? Give feedback.
Answered by
chenjiahan
Aug 1, 2025
Replies: 1 comment 1 reply
-
Try this: https://rsbuild.rs/config/environments export default defineConfig({
environments: {
web: {
source: {
entry: {
content: './src/content/index.ts',
},
},
},
background: {
source: {
entry: {
background: './src/background-index.ts',
},
},
dev: {
hmr: false,
},
},
},
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
buyili
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this: https://rsbuild.rs/config/environments