frontend/webpack.config.dev.js
2022-10-01 10:57:55 +03:00

28 lines
714 B
JavaScript

const path = require("path");
const webpack = require("webpack");
const webpackConfig = require("./webpack.config.common");
module.exports = {
...webpackConfig,
mode: "development",
watchOptions: { ignored: /node_modules/ },
devServer: {
static: path.join(__dirname, "build"),
compress: true,
port: 8080,
hot: false,
historyApiFallback: {
index: "index.html",
},
},
plugins: [
new webpack.DefinePlugin({
"process.env.NODE_ENV": JSON.stringify("development"),
"process.env.PUBLIC_BASE_URL": JSON.stringify("http://localhost:8080"),
"process.env.PUBLIC_API_URL": JSON.stringify("http://localhost:8081"),
}),
...webpackConfig.plugins,
],
};