2021-08-05 11:05:05 +02:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports =
|
|
|
|
{
|
|
|
|
mode: "development",
|
|
|
|
entry:
|
|
|
|
{
|
2021-10-06 16:54:20 +02:00
|
|
|
exampleWithCSV: "./src/exampleWithCSV.ts",
|
2021-10-13 12:41:34 +02:00
|
|
|
exampleWithHTML: "./src/exampleWithHTML.ts",
|
2021-10-06 16:54:20 +02:00
|
|
|
exampleWithJSON: "./src/exampleWithJSON.ts",
|
2021-11-02 18:04:20 +01:00
|
|
|
exampleWithUserFile: "./src/exampleWithUserFile.ts"
|
2021-08-05 11:05:05 +02:00
|
|
|
},
|
|
|
|
output:
|
|
|
|
{
|
2021-09-03 17:33:00 +02:00
|
|
|
path: path.resolve(__dirname, "public"),
|
|
|
|
filename: "JS/[name].app.js"
|
2021-08-05 11:05:05 +02:00
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: ['.tsx', '.ts', '.js'],
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
use: 'ts-loader',
|
|
|
|
exclude: /node_modules/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
devServer: {
|
2021-09-03 17:33:00 +02:00
|
|
|
static: path.join(__dirname, "public")
|
2021-08-05 11:05:05 +02:00
|
|
|
},
|
|
|
|
};
|