2023-05-24 15:34:43 +03:00
|
|
|
const paths = require("../paths");
|
2023-01-20 16:20:06 +03:00
|
|
|
|
2023-05-24 15:34:43 +03:00
|
|
|
const webpack = require("webpack");
|
|
|
|
const { merge } = require("webpack-merge");
|
2023-01-20 16:20:06 +03:00
|
|
|
|
2023-05-24 15:34:43 +03:00
|
|
|
const common = require("./common");
|
2023-01-20 16:20:06 +03:00
|
|
|
|
|
|
|
module.exports = merge(common, {
|
2023-05-24 15:34:43 +03:00
|
|
|
target: "web",
|
|
|
|
mode: "development",
|
|
|
|
devtool: "eval-cheap-source-map",
|
2023-01-20 16:20:06 +03:00
|
|
|
|
|
|
|
devServer: {
|
|
|
|
compress: true,
|
|
|
|
static: paths.build,
|
|
|
|
hot: true,
|
|
|
|
historyApiFallback: true,
|
|
|
|
// open: true,
|
|
|
|
port: 3000,
|
|
|
|
},
|
2023-05-24 15:34:43 +03:00
|
|
|
plugins: [new webpack.HotModuleReplacementPlugin()],
|
|
|
|
});
|