Fix page reloading
This commit is contained in:
parent
b90e06631b
commit
c228d6e5dc
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue