-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
45 lines (44 loc) · 871 Bytes
/
webpack.config.js
File metadata and controls
45 lines (44 loc) · 871 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
33
34
35
36
37
38
39
40
41
42
43
44
45
var path = require('path');
module.exports = {
entry: {
main: './main',
about: './about',
faq: './faq',
resources: './resources',
orglist: './orglist',
bibliography: './bibliography'
},
output: {
filename: "[name].bundle.js"
},
devtool: 'source-map',
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /(node_modules|bower_components)/,
query: {
presets: ['es2015']
}
},
{
test: /\.sass$/,
loaders: [
'style',
'css',
'autoprefixer?browsers=last 3 versions',
'sass?outputStyle=expanded'
]
},
{
test: /\.json$/,
loaders: ['json']
}
]
},
resolve: {
extensions: ['', '.js', '.sass'],
modulesDirectories: ['node_modules']
}
};