2020-04-19 16:33:55 +02:00
|
|
|
const merge = require("webpack-merge");
|
|
|
|
const baseConfig = require("./webpack.base");
|
|
|
|
const webpack = require("webpack");
|
|
|
|
|
|
|
|
const devConfig = merge(baseConfig, {
|
|
|
|
mode: "development",
|
|
|
|
devtool: "eval-source-map",
|
|
|
|
optimization: {
|
|
|
|
minimize: false,
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new webpack.HotModuleReplacementPlugin(),
|
|
|
|
new webpack.NamedModulesPlugin(),
|
2020-04-19 18:14:44 +02:00
|
|
|
new webpack.NoEmitOnErrorsPlugin(),
|
2020-04-19 16:33:55 +02:00
|
|
|
].concat(baseConfig.plugins),
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = devConfig;
|