LANCommander/LANCommander.UI/webpack.config.js
2024-08-18 15:25:31 -05:00

22 lines
No EOL
596 B
JavaScript

const path = require('path');
module.exports = {
entry: './Main.ts', // Adjust the path if your index.js is located elsewhere
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /nodemodules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: 'bundle.js', // The output file
path: path.resolve(__dirname, 'wwwroot'), // The output directory
},
mode: 'production', // Use 'production' for minified output
};