-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
35 lines (33 loc) · 956 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
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ProgressBarPlugin = require('progress-bar-webpack-plugin');
module.exports = {
watch: true,
entry: './client/index.js',
output: {
path: './dist',
filename: 'app.bundle.js'
},
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['es2015', 'react'],
plugins: ["transform-es2015-destructuring", "transform-object-rest-spread"]
}
},
{
test: /\.css$/,
loader: 'style-loader!css-loader',
include: /flexboxgrid/
}
]
},
plugins: [
new ProgressBarPlugin(),
new HtmlWebpackPlugin({template: './client/index.html'})
]
};