Skip to content

Commit 8fe5343

Browse files
adamstankiewiczmuselesscreator
authored andcommitted
fix: disable dot rule in historyApiFallback in webpack.dev.config.js files (#352)
1 parent 51f95bf commit 8fe5343

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

config/webpack.dev-stage.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ module.exports = merge(commonConfig, {
173173
https: true,
174174
historyApiFallback: {
175175
index: path.join(PUBLIC_PATH, 'index.html'),
176+
disableDotRule: true,
176177
},
177178
// Enable hot reloading server. It will provide WDS_SOCKET_PATH endpoint
178179
// for the WebpackDevServer client so it can learn when the files were

config/webpack.dev.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ module.exports = merge(commonConfig, {
175175
port: process.env.PORT || 8080,
176176
historyApiFallback: {
177177
index: path.join(PUBLIC_PATH, 'index.html'),
178+
disableDotRule: true,
178179
},
179180
// Enable hot reloading server. It will provide WDS_SOCKET_PATH endpoint
180181
// for the WebpackDevServer client so it can learn when the files were

0 commit comments

Comments
 (0)