-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
41 lines (41 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
module.exports = {
entry: {
polyfills: ['./node_modules/es6-shim/es6-shim.js', './node_modules/angular2/bundles/angular2-polyfills'],
vendor: './app/vendor.ts',
app: './app/main.ts'
},
output: {
path: __dirname + "/dist", publicPath: 'dist/', filename: "[name].bundle.js"
},
devtool: 'source-map',
resolve: {
extensions: ['', '.js', '.ts', '.less', '.html']
},
module: {
loaders: [
{
test: /\.ts/,
loaders: ['ts-loader'],
exclude: /node_modules/
},
{
test: /\.css$/,
loader: 'style-loader!css-loader'
},
{
test: /\.(png|woff|woff2|eot|ttf|svg)$/,
loader: 'url-loader?limit=100000'
},
{
test: /\.less$/,
loader: 'raw!less',
exclude: /node_modules/
},
{
test: /\.html$/,
loader: 'raw',
exclude: /node_modules/
}
]
}
};