uhr/webpack.config.js

35 lines
749 B
JavaScript
Raw Normal View History

2019-05-05 02:44:01 +02:00
/*
* Copyright (C) Schweizerische Bundesbahnen SBB, 2019.
*/
const path = require('path');
module.exports = {
entry: [
'./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')
}
};