2023-12-23 01:59:00 +01:00
|
|
|
|
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
mode: "development",
|
2024-11-13 22:04:47 +01:00
|
|
|
entry: ['./src/form.ts','./src/ota.ts', "./src/battery.ts"],
|
2023-12-23 01:59:00 +01:00
|
|
|
devtool: 'inline-source-map',
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
use: 'ts-loader',
|
|
|
|
exclude: /node_modules/,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: ['.tsx', '.ts', '.js'],
|
|
|
|
},
|
|
|
|
output: {
|
|
|
|
filename: 'bundle.js',
|
|
|
|
path: path.resolve(__dirname, '../src/webserver'),
|
|
|
|
},
|
|
|
|
};
|