-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
41 lines (36 loc) · 948 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
"use strict";
let path = require('path'),
webpack = require('webpack');
module.exports = function () {
var config = {
output: {
filename: '[name].bundle.js'
},
module: {
preLoaders: [],
loaders: [{
test: /\.js$/,
loader: 'ng-annotate?add=true!babel',
exclude: /node_modules/
}, {
test: /\.html/,
loader: 'html-loader'
},
{test: /\.json$/, loader: 'json-loader', exclude: /node_modules/}
]
},
plugins: [
new webpack.optimize.DedupePlugin()
],
resolve: {
root: [
path.resolve('/js/app.js')
],
extensions: ['', '.js']
},
sassLoader: {
includePaths: [path.resolve(__dirname, `scss`)]
}
};
return config;
};