2017-05-17 07:09:47 +00:00
|
|
|
/* eslint-disable */
|
2020-07-18 18:02:40 +00:00
|
|
|
const webpack = require("webpack");
|
|
|
|
const commonWebpackConfig = require("./webpack.config");
|
2016-02-27 21:53:11 +00:00
|
|
|
|
2016-04-29 05:25:37 +00:00
|
|
|
const developmentWebpackConfig = Object.assign(commonWebpackConfig, {
|
2016-02-27 21:53:11 +00:00
|
|
|
cache: true,
|
2020-08-12 20:16:10 +00:00
|
|
|
mode: "development",
|
2020-07-18 18:02:40 +00:00
|
|
|
devtool: "eval-source-map",
|
2016-02-27 21:53:11 +00:00
|
|
|
entry: [
|
2020-07-18 18:02:40 +00:00
|
|
|
"webpack-hot-middleware/client",
|
|
|
|
"./app/index",
|
2016-02-27 21:53:11 +00:00
|
|
|
],
|
2020-08-15 00:23:58 +00:00
|
|
|
optimization: {
|
|
|
|
usedExports: true,
|
|
|
|
},
|
2016-02-27 21:53:11 +00:00
|
|
|
});
|
|
|
|
|
2018-01-22 06:24:10 +00:00
|
|
|
developmentWebpackConfig.plugins = [
|
|
|
|
...developmentWebpackConfig.plugins,
|
2020-08-12 20:16:10 +00:00
|
|
|
new webpack.HotModuleReplacementPlugin()
|
2018-01-22 06:24:10 +00:00
|
|
|
];
|
2016-02-27 21:53:11 +00:00
|
|
|
|
|
|
|
module.exports = developmentWebpackConfig;
|