forked from KallynGowdy/ng2-firebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
47 lines (44 loc) · 1.11 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/// <reference path="./typings/node/node.d.ts" />
var webpack = require('webpack');
module.exports = {
entry: {
'ng2-firebase-all.umd': './core',
'ng2-firebase-all.umd.min': './core'
},
output: {
filename: '[name].js',
path: 'bundles',
library: 'ng2Firebase',
libraryTarget: 'umd'
},
externals:
//{
// "angular2/core": "ng.core",
// "rxjs/Rx": "Rx"
//},
[
{
"angular2/core": {
root: ["ng", "core"],
commonjs: ["angular2/core"],
amd: "angular2/core"
},
"rxjs/Rx": {
root: "Rx",
commonjs: "rxjs/Rx",
amd: "rxjs/Rx"
}
},
//"angular2/core": "ng",
//"rxjs/Rx": "Rx"
// Every Non Relative Import is an
// external dependency
/^[a-zA-Z\-0-9\/]*$/
],
plugins: [
new webpack.optimize.UglifyJsPlugin({
include: /\.min\.js$/,
minimize: true
})
]
};