You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'd like to migrate the build system in my project from webpack to something more performant, and everything has been going really smoothly until I had to make the development server working.
This is the code that I've:
// use "webpack" (imported from @rspack/core) to initialize the compilerconstcompiler=webpack(configuration)// use the dev middleware (imported from webpack-dev-middleware) to handle the requestsconstdevMiddleware=webpackDevMiddleware(compiler,{publicPath: configuration.output?.publicPath,stats: 'errors-only',})
I can not simply use @rspack/web-server because my web server, aside of serving webpack assets, is also used to serve other API requests (covered by other middlewares, I believe they're not important to this question).
Have any of you had a similar problem and found a solution?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'd like to migrate the build system in my project from
webpack
to something more performant, and everything has been going really smoothly until I had to make the development server working.This is the code that I've:
I can not simply use
@rspack/web-server
because my web server, aside of serving webpack assets, is also used to serve other API requests (covered by other middlewares, I believe they're not important to this question).Have any of you had a similar problem and found a solution?
Beta Was this translation helpful? Give feedback.
All reactions