LANCommander/LANCommander.Client/wwwroot/scripts/webpack.config.js

23 lines
464 B
JavaScript
Raw Permalink Normal View History

const path = require('path');
module.exports = {
entry: './app.ts',
mode: 'development',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
resolve: {
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
use: 'ts-loader',
exclude: /node_modules/,
}
]
},
devtool: 'source-map'
}