/* * 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' } };