Fix page reloading

This commit is contained in:
dominik-zeglen 2019-06-19 17:11:15 +02:00
parent b90e06631b
commit c228d6e5dc

View file

@ -43,7 +43,8 @@ module.exports = (env, argv) => {
output = { output = {
path: resolve("build/dashboard/"), path: resolve("build/dashboard/"),
filename: "[name].js", filename: "[name].js",
chunkFilename: "[name].js" chunkFilename: "[name].js",
publicPath: "/"
}; };
fileLoaderPath = "file-loader?name=[name].[ext]"; fileLoaderPath = "file-loader?name=[name].[ext]";
} }
@ -52,6 +53,7 @@ module.exports = (env, argv) => {
devServer: { devServer: {
contentBase: path.join(__dirname, "build/dashboard/"), contentBase: path.join(__dirname, "build/dashboard/"),
compress: true, compress: true,
historyApiFallback: true,
hot: true, hot: true,
port: 9000 port: 9000
}, },