1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-09-21 18:07:54 +03:00
tabby/tabby-web-demo/webpack.config.js
Eugene Pankov d8a8d41614
lint
2021-07-11 16:24:04 +02:00

43 lines
1.1 KiB
JavaScript

const path = require('path')
module.exports = {
target: 'node',
entry: 'src/index.ts',
devtool: 'source-map',
context: __dirname,
mode: 'development',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
pathinfo: true,
libraryTarget: 'umd',
devtoolModuleFilenameTemplate: 'webpack-tabby-demo:///[resource-path]',
},
resolve: {
modules: ['.', 'src', 'node_modules'].map(x => path.join(__dirname, x)),
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
loader: 'ts-loader',
options: {
configFile: path.resolve(__dirname, 'tsconfig.json'),
},
},
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
{ test: /\.svg/, use: ['svg-inline-loader'] },
],
},
externals: [
'fs',
'ngx-toastr',
'path',
/^rxjs/,
/^@angular/,
/^@ng-bootstrap/,
/^tabby-/,
],
}