19 lines
497 B
JavaScript
19 lines
497 B
JavaScript
|
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(),
|
||
|
new webpack.NoEmitOnErrorsPlugin(), // don't reload if there is an error
|
||
|
].concat(baseConfig.plugins),
|
||
|
});
|
||
|
|
||
|
module.exports = devConfig;
|