Skip to content

Commit cd2c4b5

Browse files
Maxime TylerRemon Oldenbeuving
Maxime Tyler
authored and
Remon Oldenbeuving
committed
remove every dependancies in build
1 parent bdd7fff commit cd2c4b5

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

webpack.config.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ module.exports = {
44
entry: './src/datepicker',
55
output: {
66
libraryTarget: 'umd',
7-
library: 'DatePicker'
7+
library: 'DatePicker',
8+
path: './dist/'
89
},
910
module: {
1011
loaders: [
@@ -30,6 +31,22 @@ module.exports = {
3031
commonjs: 'react',
3132
amd: 'react'
3233
}
34+
},
35+
{
36+
'moment': {
37+
root: 'moment',
38+
commonjs2: 'moment',
39+
commonjs: 'moment',
40+
amd: 'moment'
41+
}
42+
},
43+
{
44+
'react-onclickoutside': {
45+
root: 'OnClickOutside',
46+
commonjs2: 'react-onclickoutside',
47+
commonjs: 'react-onclickoutside',
48+
amd: 'react-onclickoutside'
49+
}
3350
}
3451
],
3552
node: {Buffer: false},

0 commit comments

Comments
 (0)