updated Webpack config

- removed hotloading 
- removed output public path
- added historyApiFallback (so that 404s return index.html)
This commit is contained in:
notnull 2019-03-23 17:21:22 -04:00
parent 95c473bda1
commit 829f4530ba

View File

@ -1,4 +1,5 @@
const webpack = require('webpack')
const path = require('path')
module.exports = {
entry: ['@babel/polyfill', './src/index.js'],
@ -16,14 +17,14 @@ module.exports = {
},
output: {
path: __dirname + '/dist',
publicPath: '/',
filename: 'bundle.js',
},
plugins: [new webpack.HotModuleReplacementPlugin()],
devServer: {
contentBase: './dist',
hot: true,
contentBase: path.join(__dirname, 'dist'),
hot: false,
port: 3001,
historyApiFallback: true,
allowedHosts: [
'localhost',
'irc.anarchyplanet.org',