forked from simpulton/angular2-website-routes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
32 lines (30 loc) · 756 Bytes
/
webpack.config.js
File metadata and controls
32 lines (30 loc) · 756 Bytes
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
var webpack = require('webpack'),
path = require('path');
function root(args) {
args = Array.prototype.slice.call(arguments, 0);
return path.join.apply(path, [__dirname].concat(args));
}
module.exports = {
devtool: 'source-map',
debug: true,
entry: './app/boot.ts',
resolve: {
extensions: ['', '.ts', '.js']
},
output: {
path: './build',
filename: 'bundle.js'
},
module: {
preLoaders: [
{ test: /\.js$/, loader: 'source-map-loader', exclude: [ root('node_modules/rxjs') ] }
],
loaders: [
{ test: /\.ts$/, loader: 'awesome-typescript-loader', exclude: [ /\.(spec|e2e)\.ts$/ ] },
{ test: /\.(html|css)$/, loader: 'raw-loader' }
]
},
devServer: {
historyApiFallback: true
}
};