1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-25 03:22:58 +03:00
tabby/terminus-settings/webpack.config.js
Eugene Pankov dc513b427d done
2017-04-11 22:45:59 +02:00

37 lines
977 B
JavaScript

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-/,
]
}