-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.development.js
More file actions
40 lines (39 loc) · 872 Bytes
/
Copy pathwebpack.development.js
File metadata and controls
40 lines (39 loc) · 872 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
var path = require('path'),
webpack = require('webpack');
module.exports = {
devtool: 'eval',
entry: [
'webpack-dev-server/client?http://localhost:8081',
'webpack/hot/only-dev-server',
'./src/js/main.jsx'
],
output: {
path: '/',
filename: 'app.js',
publicPath: '/js/',
vendor: ['react',
'material-ui',
'react-router',
'lodash',
'velocity-animate',
'bluebird']
},
module: {
loaders: [{
test: /\.jsx$/,
loaders: ['react-hot', 'babel?stage=0'],
include: path.join(__dirname, 'src')
}]
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
new webpack.optimize.CommonsChunkPlugin(
'vendor',
'libs.js'
)
],
resolve: {
extensions: ['', '.js', '.jsx']
}
};