tabby/terminus-settings/webpack.config.js

37 lines
977 B
JavaScript
Raw Normal View History

2017-04-12 04:45:59 +08:00
module.exports = {
target: 'node',
entry: 'src/index.ts',
devtool: 'source-map',
output: {
filename: './dist/index.js',
pathinfo: true,
libraryTarget: 'commonjs',
devtoolModuleFilenameTemplate: 'webpack-terminus-settings:///[resource-path]',
},
resolve: {
modules: ['.', 'node_modules', '../app/node_modules'],
extensions: ['.ts', '.js'],
},
module: {
loaders: [
{ test: /\.ts$/, use: 'awesome-typescript-loader', exclude: [/node_modules/] },
{ test: /schemes\/.*$/, use: "raw-loader" },
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
{ test: /\.css$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
]
},
externals: [
'fs',
'fs-promise',
'path',
'node-pty',
'child-process-promise',
'fs-promise',
/^rxjs/,
/^@angular/,
/^@ng-bootstrap/,
/^terminus-/,
]
}