Browse Source

Merge branch 'master' of https://github.com/ant-design/ant-design

pull/57/head
SimaQ 9 years ago
parent
commit
dac670a5c2
  1. 4
      index.js
  2. 18
      webpack.config.js

4
index.js

@ -29,7 +29,3 @@ var antd = {
module.exports = antd;
antd.version = require('./package.json').version;
if (typeof window !== undefined) {
window.antd = antd;
}

18
webpack.config.js

@ -17,12 +17,24 @@ module.exports = {
output: {
path: path.join(process.cwd(), 'dist'),
filename: '[name].js'
filename: '[name].js',
library: 'antd',
libraryTarget: 'umd'
},
externals: {
react: "React",
jquery:"jQuery"
'react': {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
},
'jquery': {
root: 'jQuery',
commonjs2: 'jquery',
commonjs: 'jquery',
amd: 'jquery'
}
},
module: {

Loading…
Cancel
Save