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: 'terminusCommunityColorSchemes',
libraryTarget: 'umd',
devtoolModuleFilenameTemplate: 'webpack-terminus-community-color-schemes:///[resource-path]',
},
resolve: {
modules: ['.', 'node_modules', '..'],
modules: ['.', 'node_modules', '../app/node_modules'],
extensions: ['.ts', '.js'],
},
module: {
@@ -18,9 +18,10 @@ module.exports = {
{ test: /\/schemes\//, loader: "raw-loader" },
]
},
externals: {
'fs': true,
'@angular/core': true,
'terminus-terminal': true,
}
externals: [
/^rxjs/,
/^@angular/,
/^@ng-bootstrap/,
/^terminus-/,
]
}