remove webpack hot load, react hot load and react redbox (#326)

Fixes #176 and #290
This commit is contained in:
Bruce Martin
2018-10-15 08:47:15 -07:00
committed by GitHub
parent c7e6f54450
commit 329cf64a49
6 changed files with 40 additions and 170 deletions

View File

@@ -10,11 +10,7 @@ const nodeModules = path.resolve("node_modules");
module.exports = {
mode: "development",
devtool: "eval",
entry: [
"webpack-hot-middleware/client?quiet=true&noInfo=true",
require.resolve("react-hot-loader/patch"),
"./src/index"
],
entry: ["./src/index"],
output: {
path: path.resolve("build"),
pathinfo: true,
@@ -47,9 +43,7 @@ module.exports = {
{
loader: "postcss-loader",
options: {
plugins: function() {
return [];
}
plugins: () => []
}
}
]
@@ -75,8 +69,6 @@ module.exports = {
template: path.resolve("index.html"),
favicon: path.resolve("favicon.png")
}),
// Note: only CSS is currently hot reloaded
new webpack.HotModuleReplacementPlugin(),
new webpack.NoEmitOnErrorsPlugin()
]
};