2019-05-05 02:44:01 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) Schweizerische Bundesbahnen SBB, 2019.
|
|
|
|
*/
|
|
|
|
|
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: [
|
2019-05-05 03:41:01 +02:00
|
|
|
'./src/index.ts',
|
|
|
|
'./node_modules/jquery/dist/jquery.js'
|
2019-05-05 02:44:01 +02:00
|
|
|
],
|
2019-05-05 12:18:46 +02:00
|
|
|
devtool: 'inline-source-map',
|
2019-05-05 02:44:01 +02:00
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
2019-05-05 12:18:46 +02:00
|
|
|
enforce: 'pre',
|
2019-05-05 02:44:01 +02:00
|
|
|
test: /\.tsx?$/,
|
2019-05-05 12:18:46 +02:00
|
|
|
exclude: /node_modules/,
|
|
|
|
use: 'eslint-loader'
|
|
|
|
}, {
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
use: 'ts-loader'
|
2019-05-05 02:44:01 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: ['.tsx', '.ts', '.js']
|
|
|
|
},
|
|
|
|
output: {
|
|
|
|
filename: 'bundle.js',
|
|
|
|
path: path.resolve(__dirname, 'dist')
|
|
|
|
}
|
|
|
|
};
|