rgl/concurrency/webpack.config.js
2021-10-04 13:36:07 -05:00

26 lines
499 B
JavaScript

const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: './src/index.tsx',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules|\.test.tsx?$/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
mode: 'development',
plugins: [
new webpack.EnvironmentPlugin(["API_URL"])
]
};