-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Please support honojs #5258
Comments
I think we already support it, but without middleware support (we can fix it here, you can setup own), we have the |
I rewrote the webpack-dev-server with typescript and found that the above middleware did not solve the problem. The biggest problem at present is connect-history-api-fallback,Other functions can be operated normally |
Do you mean they doesn't work? |
yes |
I think in which case you need to use |
Let's close in favor #4741, I will add basic |
Can you provide a minimal demo? Although the rewrite has been completed, I rewrote it with ts and cannot use the plugin code. |
I will add a test today |
https://github.com/webpack/webpack-dev-server/blob/3096148746c906105c4424352f5b5ad1bff0fd4f/lib/Server.js#L2422C1-L2425C7 const op: any = {
port: this.options.port,
}
if (type === 'http') {
const {createServer} = await import('node:http')
op.createServer = createServer
} else if (type === 'https') {
const {createSecureServer} = await import('node:http2')
op.createServer = createSecureServer
op.serverOptions = {
...options,
allowHTTP1: true,
}
// console.log(op)
}
this.server = serve({
fetch: AppServer.app.fetch,
...op,
}) |
import {serve} from '@hono/node-server'
this.server = serve({
fetch: AppServer.app.fetch,
...op,
}) |
We have the |
"webpack-dev-server": "^5.0.4"
|
@ckken it will be possible in the next release |
use honojs like https://webpack.js.org/configuration/dev-server/#devserverapp
https://github.com/webpack/webpack-dev-middleware/tree/master?tab=readme-ov-file#hono
Feature Proposal
Feature Use Case
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: