forked from Urigo/angular2-meteor-accounts-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
38 lines (37 loc) · 1.03 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
var path = require('path');
module.exports = {
entry: {
'index': "./modules/index.ts",
'annotations': "./modules/annotations.ts",
'login-buttons': "./modules/login-buttons.ts"
},
output: {
path: path.join(__dirname, "build"),
libraryTarget: 'commonjs',
filename: "[name].js"
},
resolve: {
extensions: ['', '.webpack.js', '.web.js', '.ts', '.tsx', '.js', '.css', '.less', '.html']
},
externals: [
{
'./login-buttons': './login-buttons',
'./annotations': './annotations',
'angular2/core': 'angular2/core',
'angular2/common': 'angular2/common',
'angular2/src/router/lifecycle_annotations_impl': 'angular2/src/router/lifecycle_annotations_impl',
'angular2/router': 'angular2/router',
'angular2/src/core/util/decorators': 'angular2/src/core/util/decorators',
'meteor/accounts-base': 'meteor/accounts-base',
'meteor/tracker': 'meteor/tracker'
}
],
module: {
loaders: [
{
test: /\.tsx?$/,
loader: 'ts-loader'
}
]
}
};