Files
DisCal-Discord-Bot/webpack.config.js
NovaFox161 57d32054c1 Fix numerous issues on the way to getting calendar embed working
Add inline source mapping for debugging
Fix web calendar's json conversion being incorrect
Start work on getting the calendar styled correctly
2020-03-08 13:32:54 -05:00

24 lines
484 B
JavaScript

const path = require('path');
module.exports = {
mode: "production",
entry: './web/src/main/javascript/index.ts',
devtool: "inline-source-map",
module: {
rules: [{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
}],
},
resolve: {
extensions: ['.ts', '.tsx', '.js'],
alias: {
'@': path.resolve('web/src/main/javascript')
}
},
output: {
path: path.resolve(__dirname, "web/src/main/resources/static/assets/js"),
filename: 'bundle.js'
},
};