forked from stevermeister/dutch-tax-income-calculator-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
44 lines (43 loc) · 923 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
38
39
40
41
42
43
44
var webpack = require('webpack'),
HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
context: __dirname + '/src',
entry: './app.js',
output: {
path: __dirname + '/dist',
filename: 'app.js'
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'ng-annotate!babel?presets[]=es2015'
},
{test: /\.css$/, loader: 'style-loader!css-loader?minimize'},
{
test: /\.html$/,
loader: 'ng-cache?prefix=[dir]/[dir]',
exclude: /index\.html/
}
]
},
watchOptions: {
aggregateTimeout: 100
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
sourceMap: true,
mangle: false
}),
new HtmlWebpackPlugin({
template: 'index.html',
inject: 'body',
favicon: 'favicon.png'
}),
],
devtool: "source-map",
devServer: {
inline: true,
}
};