mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2024-12-04 03:25:12 +00:00
cb55cae692
* BETTERZON-100: Switching session handling to cookies * BETTERZON-100: Some code reformatting * BETTERZON-100: Some more code reformatting
33 lines
768 B
TypeScript
33 lines
768 B
TypeScript
const webpack = require('webpack');
|
|
const path = require('path');
|
|
const nodeExternals = require('webpack-node-externals');
|
|
|
|
module.exports = {
|
|
entry: ['webpack/hot/poll?100', './src/index.ts'],
|
|
watch: false,
|
|
target: 'node',
|
|
externals: [
|
|
nodeExternals({
|
|
whitelist: ['webpack/hot/poll?100']
|
|
})
|
|
],
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /.tsx?$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/
|
|
}
|
|
]
|
|
},
|
|
mode: 'development',
|
|
resolve: {
|
|
extensions: ['.tsx', '.ts', '.js']
|
|
},
|
|
plugins: [new webpack.HotModuleReplacementPlugin()],
|
|
output: {
|
|
path: path.join(__dirname, 'dist'),
|
|
filename: 'index.js'
|
|
}
|
|
};
|