Skip to content

Commit

Permalink
add history api fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexChesters committed Jan 18, 2024
1 parent 7a15da4 commit 5a8549b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"build:dev": "webpack --config webpack.dev.config.js",
"build:prod": "webpack --config webpack.prod.config.js",
"start": "webpack serve --config webpack.dev.config.js --port 8081",
"start": "webpack serve --config webpack.dev.config.js",
"lint:styles": "stylelint \"src/**/*.scss\"",
"lint:scripts": "eslint --config .eslintrc.json --ext tsx --ext ts src",
"lint": "npm run lint:scripts && npm run lint:styles",
Expand Down
4 changes: 4 additions & 0 deletions static/webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ module.exports = {
'webpack/hot/only-dev-server',
'./src/index.tsx'
],
devServer: {
port: 8081,
historyApiFallback: true
},
output: {
path: path.join(__dirname, '/build/my-app'),
publicPath: '/my-app',
Expand Down

0 comments on commit 5a8549b

Please sign in to comment.