forked from jbrodriguez/react-tree-menu
-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.config.js
44 lines (37 loc) · 846 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
42
43
44
var webpack = require("webpack");
var validator = require("webpack-validator");
var config = {
cache: true,
devtool: 'inline-source-map',
entry: './example/Boot',
output: {
path: __dirname + "/example",
filename: "bundle.js"
},
module: {
loaders: [{
test: /\.jsx?$/,
exclude: [/node_modules/],
loaders: ['react-hot', 'babel-loader']
}]
},
resolve: {
extensions: ['', '.js', '.jsx']
},
devServer: {
hot: true,
inline: true,
contentBase: './example/'
},
plugins: [
new webpack.HotModuleReplacementPlugin({
multiStep: true
})
]
};
module.exports = validator(config, {
quiet: true,
rules: {
'no-root-files-node-modules-nameclash': false
}
});