2021-03-31 18:14:03 +02:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports =
|
|
|
|
{
|
|
|
|
mode: "development",
|
|
|
|
devtool: "inline-source-map",
|
|
|
|
entry:
|
|
|
|
{
|
2021-04-08 12:41:47 +02:00
|
|
|
example: "./src/example.ts",
|
|
|
|
exampleFlickity: "./src/exampleFlickity.ts"
|
2021-03-31 18:14:03 +02:00
|
|
|
},
|
|
|
|
output:
|
|
|
|
{
|
2021-09-03 11:36:07 +02:00
|
|
|
path: path.resolve(__dirname, "public"),
|
|
|
|
filename: "JS/[name].app.js",
|
2021-03-31 18:14:03 +02:00
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: ['.tsx', '.ts', '.js'],
|
2021-08-04 16:16:51 +02:00
|
|
|
},
|
2021-03-31 18:14:03 +02:00
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
use: 'ts-loader',
|
|
|
|
exclude: /node_modules/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
devServer: {
|
2021-09-03 10:57:01 +02:00
|
|
|
static: path.join(__dirname, "public")
|
2021-03-31 18:14:03 +02:00
|
|
|
},
|
|
|
|
};
|