Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: simplify rsbuild dev-related configurations #444

Closed
9aoy opened this issue Nov 10, 2023 · 0 comments · Fixed by #447
Closed

[Feature]: simplify rsbuild dev-related configurations #444

9aoy opened this issue Nov 10, 2023 · 0 comments · Fixed by #447

Comments

@9aoy
Copy link
Contributor

9aoy commented Nov 10, 2023

What problem does this feature solve?

There are some duplications between dev and tools.devServer configurations, and some modern.js tools.devServer configurations are not yet supported by rsbuild.

in modern.js:

image image

so, we will merge some tools.devServer into dev, and remove support for tools.devServer.

What does the proposed API look like?

configuration changes

  • tools.devServer.watch
  • tools.devServer.liveReload
  • tools.devServer.before (use dev.setupMiddlewares.unshift instead)
  • tools.devServer.after (use dev.setupMiddlewares.push instead)
  • tools.devServer.hot (use dev.hmr instead)
  • tools.devServer.https (use dev.https instead)
  • tools.devServer.client => dev.client
  • tools.devServer.setupMiddlewares => dev.setupMiddlewares
  • tools.devServer.proxy => dev.proxy
  • tools.devServer.compress => dev.compress
  • tools.devServer.devMiddleware => dev.devMiddleware
  • tools.devServer.headers => dev.headers
  • tools.devServer.historyApiFallback => dev.historyApiFallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant