updated Webpack config
- removed hotloading - removed output public path - added historyApiFallback (so that 404s return index.html)
This commit is contained in:
parent
95c473bda1
commit
829f4530ba
@ -1,4 +1,5 @@
|
||||
const webpack = require('webpack')
|
||||
const path = require('path')
|
||||
|
||||
module.exports = {
|
||||
entry: ['@babel/polyfill', './src/index.js'],
|
||||
@ -15,15 +16,15 @@ module.exports = {
|
||||
extensions: ['*', '.js', '.jsx'],
|
||||
},
|
||||
output: {
|
||||
path: __dirname + '/dist',
|
||||
publicPath: '/',
|
||||
path: __dirname + '/dist',
|
||||
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',
|
||||
|
Loading…
Reference in New Issue
Block a user