16 lines
434 B
JavaScript
16 lines
434 B
JavaScript
|
const { merge } = require("webpack-merge");
|
||
|
const common = require("./webpack.common.cjs");
|
||
|
const path = require("path");
|
||
|
|
||
|
// noinspection JSCheckFunctionSignatures
|
||
|
module.exports = merge(common, {
|
||
|
mode: 'development',
|
||
|
devtool: 'eval-source-map',
|
||
|
devServer: {
|
||
|
static: {
|
||
|
directory: path.join(__dirname, 'dist/client'),
|
||
|
},
|
||
|
hot: true,
|
||
|
proxy: {'/socket.io': {target: 'http://127.0.0.1:3001', ws: true}}
|
||
|
}
|
||
|
});
|