-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
42 lines (35 loc) · 844 Bytes
/
webpack.config.js
File metadata and controls
42 lines (35 loc) · 844 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
/*
this is the standard configuration to generate `build/fluxo.js` file which
contains the Javascript library exported by this project.
run `webpack` to genereate a new build.
(you need _Webpack_ to be installed globally on your machine)
see `Gulpfile.js` for more advanced tasks and configurations.
*/
'use strict';
module.exports = {
entry: {
'reactb' : './index.js'
},
externals: {
'react' : 'React'
},
module: {
loaders: [{
test: /\.jsx?$/,
loaders: ['jsx?harmony']
}],
},
output: {
filename: './build/reactb.js',
libraryTarget: 'umd',
library: ['[name]']
},
resolve: {
modulesDirectories: [
'node_modules'
]
},
debug: true,
devtool: '#source-map',
watchDelay: 200
};