-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
39 lines (36 loc) · 917 Bytes
/
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
/**
* Created by david on 5/29/15.
*/
module.exports = {
context: __dirname + '/app',
entry: './index.js',
output: {
path: __dirname + '/app',
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel',
exclude: /node_modules|dist|bower_components/,
include: [__dirname + '/node_modules/angular2']
}, {
test: /\.ts$/,
loader: 'typescript'
}, {
test: /\.html$/,
loader: 'raw'
}, {
test: /\.less$/,
loader: 'style!css!less'
}, {
test: /\.scss$/,
loader: 'style!css!sass'
}, {
test: /\.css$/,
loader: 'style!css!postcss'
}
]
}
};