You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
const webpack = require("webpack");
|
|
|
|
const webpackMerge = require("webpack-merge");
|
|
|
|
const base = require("./base.config");
|
|
|
|
|
|
|
|
module.exports = webpackMerge.strategy({
|
|
|
|
entry: "prepend",
|
|
|
|
})(base, {
|
|
|
|
devtool: "eval-source-map",
|
|
|
|
entry: [
|
|
|
|
"react-hot-loader/patch",
|
|
|
|
"webpack-dev-server/client?http://localhost:8080",
|
|
|
|
"webpack/hot/only-dev-server",
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
new webpack.HotModuleReplacementPlugin(),
|
|
|
|
],
|
|
|
|
devServer: {
|
|
|
|
hot: true
|
|
|
|
}
|
|
|
|
});
|