mirror of
https://github.com/Eugeny/tabby.git
synced 2025-01-03 16:12:50 +03:00
43 lines
1.1 KiB
JavaScript
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-/,
|
|
],
|
|
}
|