38 lines
742 B
JavaScript
38 lines
742 B
JavaScript
const webpack = require('webpack')
|
|
|
|
module.exports = {
|
|
entry: ['@babel/polyfill', './src/index.js'],
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(js|jsx)$/,
|
|
exclude: /node_modules/,
|
|
use: ['babel-loader'],
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
extensions: ['*', '.js', '.jsx'],
|
|
},
|
|
output: {
|
|
path: __dirname + '/dist',
|
|
publicPath: '/',
|
|
filename: 'bundle.js',
|
|
},
|
|
plugins: [new webpack.HotModuleReplacementPlugin()],
|
|
devServer: {
|
|
contentBase: './dist',
|
|
hot: true,
|
|
port: 3001,
|
|
allowedHosts: [
|
|
'localhost',
|
|
'irc.anarchyplanet.org',
|
|
'services.anarchyplanet.org',
|
|
'gam4soeb3t5f56fs.onion',
|
|
],
|
|
proxy: {
|
|
'/api': 'http://localhost:31337',
|
|
},
|
|
},
|
|
}
|