vCarousel/webpack.config.js

32 lines
573 B
JavaScript
Raw Normal View History

2021-03-31 18:14:03 +02:00
const path = require('path');
module.exports =
{
mode: "development",
devtool: "inline-source-map",
entry:
{
example: "./src/example.ts",
exampleFlickity: "./src/exampleFlickity.ts"
2021-03-31 18:14:03 +02:00
},
output:
{
filename: "./JS/[name].app.js",
path: path.resolve(__dirname, "public")
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
devServer: {
contentBase: path.join(__dirname, "public")
},
};