22 lines
No EOL
596 B
JavaScript
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
|
|
}; |