troonia/webpack.dev.cjs
2022-10-23 22:20:36 -07:00

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}}
}
});