-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
28 lines (27 loc) · 836 Bytes
/
Copy pathwebpack.config.js
File metadata and controls
28 lines (27 loc) · 836 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
var path = require('path');
module.exports = {
entry: ['babel-polyfill', path.normalize(__dirname + '/src/js/main')],
devtool: 'cheap-module-source-map',
output: {
filename: 'bundle.js',
path: path.join(__dirname, 'public/dist')
},
module: {
loaders: [
{
loader: 'babel',
test: /\.js$/,
include: [path.resolve(__dirname, 'src', 'js')],
query: {
plugins: ['transform-async-to-generator', 'transform-runtime', 'transform-object-rest-spread'],
presets: ['es2015']
}
},
{
loader: 'style!css',
test: /\.css$/,
include: [path.resolve(__dirname, 'src', 'css')]
}
]
}
};