Skip to content

Commit

Permalink
Merge pull request #1501 from skaut/dev-server
Browse files Browse the repository at this point in the history
Fixed redirects for dev server and live site
  • Loading branch information
marekdedic authored Jun 20, 2024
2 parents dac0017 + 9286043 commit 4cb3429
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/frontend/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = (env) => {
devtool: mode === "development" ? "source-map" : false,
plugins: [
new HtmlWebpackPlugin({
base: "/",
template: "./src/html/index.html",
}),
new MiniCssExtractPlugin(),
Expand Down Expand Up @@ -61,6 +62,9 @@ module.exports = (env) => {
filename: "[name].[contenthash:8].js",
crossOriginLoading: "anonymous",
},
devServer: {
historyApiFallback: true,
},
optimization: {
minimize: mode === "production",
minimizer: [
Expand Down

0 comments on commit 4cb3429

Please sign in to comment.