uhr/webpack.config.js
Manuel Friedli 174e0d9af2
All checks were successful
continuous-integration/drone/push Build is passing
Enable linting
2019-05-05 12:18:46 +02:00

34 lines
749 B
JavaScript

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