Disable index.html fallback in dev

This commit is contained in:
MattIPv4 2021-02-18 15:05:33 +00:00
parent d4d02172d0
commit c1677f9452
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: [