workadventure/front/webpack.config.js
David Négrier f1ab9705c9 Adding docker-compose
This first commit contains a docker-compose with:

- front container
- traefik for reverse proxy

back container will be added when ready.
2020-04-03 18:31:11 +02:00

35 lines
766 B
JavaScript

const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: './src/index.ts',
devtool: 'inline-source-map',
devServer: {
contentBase: './dist',
host: '0.0.0.0',
disableHostCheck: true,
},
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: [ '.tsx', '.ts', '.js' ],
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
plugins: [
new webpack.ProvidePlugin({
Phaser: 'phaser'
}),
new webpack.EnvironmentPlugin(['API_URL'])
]
};