Manuel Friedli
3c986d645a
All checks were successful
continuous-integration/drone/push Build is passing
39 lines
830 B
JavaScript
39 lines
830 B
JavaScript
/*
|
|
* Copyright (C) Schweizerische Bundesbahnen SBB, 2019.
|
|
*/
|
|
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: [
|
|
'./src/index.ts'
|
|
],
|
|
// devtool: 'inline-source-map',
|
|
mode: 'production',
|
|
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: 'uhr.js',
|
|
library: 'uhr',
|
|
path: path.resolve(__dirname, 'dist')
|
|
},
|
|
externals: {
|
|
jquery: 'jQuery',
|
|
'js-cookie': 'Cookies'
|
|
}
|
|
};
|