FreeDatas2HTML/webpack.config.js

33 lines
672 B
JavaScript
Raw Normal View History

2021-08-05 11:05:05 +02:00
const path = require('path');
module.exports =
{
mode: "production",
2021-08-05 11:05:05 +02:00
entry:
{
exampleWithCSV: "./src/demo/exampleWithCSV.ts",
exampleWithHTML: "./src/demo/exampleWithHTML.ts",
exampleWithJSON: "./src/demo/exampleWithJSON.ts",
exampleWithUserFile: "./src/demo/exampleWithUserFile.ts"
2021-08-05 11:05:05 +02:00
},
output:
{
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: {
static: path.join(__dirname, "public")
2021-08-05 11:05:05 +02:00
},
};