From f09cb421603edd77fd435ea8fbea5054ec246696 Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Thu, 7 Jun 2018 13:39:56 +0300 Subject: [PATCH] webpack dev server configured with react-router --- webpack.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 73d139d01..81bc7a357 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,7 +6,8 @@ module.exports = { entry: './src/index.js', output: { path: path.join(__dirname, 'dist'), - filename: 'bundle.js' + filename: 'bundle.js', + publicPath: '/' }, module: { rules: [ @@ -52,6 +53,9 @@ module.exports = { 'stremio-common': path.resolve(__dirname, 'src/common') } }, + devServer: { + historyApiFallback: true + }, plugins: [ new HtmlWebPackPlugin({ template: './src/index.html'