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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user