1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 00:00:00 +00:00

repair development env bug (#4833)

This commit is contained in:
杨顺强
2021-03-15 17:01:54 +08:00
committed by GitHub
parent afe5bc19c0
commit 9753ef57e8

View File

@@ -13,7 +13,14 @@ const compiler = Webpack(config);
const devServerOptions = Object.assign({}, config.devServer, {
stats: {
colors: true
}
},
hot: true,
// Use 'ws' instead of 'sockjs-node' on server since we're using native
// websockets in `webpackHotDevClient`.
transportMode: 'ws',
// Prevent a WS client from getting injected as we're already including
// `webpackHotDevClient`.
injectClient: false,
});
console.log('Dev server options:', devServerOptions);