Disable index.html fallback in dev (#230)

pull/234/head
Matt (IPv4) Cowley 2021-02-19 17:54:58 +00:00 committed by GitHub
parent 90afc38a38
commit b4a933add1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ module.exports = {
outputDir: 'dist',
filenameHashing: false, // Don't hash the output, so we can embed on the DigitalOcean Community
productionSourceMap: false,
devServer: {
historyApiFallback: false, // Don't serve index.html for 404s in dev
},
configureWebpack: {
node: false, // Disable Node.js polyfills (Buffer etc.) -- This will be default in Webpack 5
plugins: [