forked from jasonslyvia/react-anything-sortable
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.conf.js
More file actions
35 lines (34 loc) · 728 Bytes
/
webpack.conf.js
File metadata and controls
35 lines (34 loc) · 728 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
var isDebug = process.env.NODE_ENV !== 'production';
module.exports = {
entry: './src/index.js',
output: {
path: __dirname + '/lib',
filename: 'index.js',
library: 'react-anything-sortable',
libraryTarget: 'umd'
},
module: {
loaders: [{
test: /\.js$/,
include: /src/,
loader: 'babel?stage=0&loose=all'
}]
},
externals: {
'react': {
'commonjs': 'react',
'commonjs2': 'react',
'amd': 'React',
'root': 'React'
},
'react-dom': {
'commonjs': 'react-dom',
'commonjs2': 'react-dom',
'amd': 'ReactDOM',
'root': 'ReactDOM'
}
},
debug: isDebug,
devtool: isDebug ? 'inline-source-map' : false,
watch: isDebug
};