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 = {
|
||||
path: resolve("build/dashboard/"),
|
||||
filename: "[name].js",
|
||||
chunkFilename: "[name].js"
|
||||
chunkFilename: "[name].js",
|
||||
publicPath: "/"
|
||||
};
|
||||
fileLoaderPath = "file-loader?name=[name].[ext]";
|
||||
}
|
||||
|
@ -52,6 +53,7 @@ module.exports = (env, argv) => {
|
|||
devServer: {
|
||||
contentBase: path.join(__dirname, "build/dashboard/"),
|
||||
compress: true,
|
||||
historyApiFallback: true,
|
||||
hot: true,
|
||||
port: 9000
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue