This commit is contained in:
Eugene Pankov
2017-04-11 22:45:59 +02:00
parent 0ea346a6ae
commit dc513b427d
114 changed files with 454 additions and 374 deletions

View File

@@ -1,15 +1,15 @@
module.exports = {
target: 'node',
entry: 'index.ts',
entry: 'src/index.ts',
devtool: 'source-map',
output: {
filename: './dist/index.js',
pathinfo: true,
library: 'terminusTerminal',
libraryTarget: 'umd',
devtoolModuleFilenameTemplate: 'webpack-terminus-terminal:///[resource-path]',
},
resolve: {
modules: ['.', 'node_modules', '..'],
modules: ['.', 'node_modules', '../app/node_modules'],
extensions: ['.ts', '.js'],
},
module: {
@@ -17,19 +17,20 @@ module.exports = {
{ test: /\.ts$/, use: 'awesome-typescript-loader' },
{ test: /schemes\/.*$/, use: "raw-loader" },
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
{ test: /\.scss$/, use: ['style-loader', 'css-loader', 'sass-loader'] },
{ test: /\.css$/, use: ['style-loader', 'css-loader', 'sass-loader'] },
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
{ test: /\.css$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
]
},
externals: {
'fs': true,
'fs-promise': true,
'path': true,
'node-pty': true,
'child-process-promise': true,
'fs-promise': true,
'@angular/core': true,
'terminus-core': true,
'terminus-settings': true,
}
externals: [
'fs',
'fs-promise',
'font-manager',
'path',
'node-pty',
'child-process-promise',
/^rxjs/,
/^@angular/,
/^@ng-bootstrap/,
/^terminus-/,
]
}