fix scripts

Conflicts:
	package.json
This commit is contained in:
yiminghe 2016-01-14 19:23:25 +08:00 committed by afc163
parent efcc8c5cb2
commit e924c57296
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ fs.writeFileSync(
"module.exports = " + JSON.stringify(require('../package.json')) + ";",
'utf-8'
);
var antdCss = path.join(cwd, 'dist/index.css');
var antdCss = path.join(cwd, 'dist/antd.css');
fs.createReadStream(antdCss)
.pipe(fs.createWriteStream(path.join(cwd, 'lib/index.css')));
console.log('prenpm done');

View File

@ -1,6 +1,6 @@
npm run babel
rm -rf dist
webpack
webpack --config webpack.antd.config.js
node scripts/prenpm.js
npm publish $1 $2
rm -rf lib

View File

@ -1,6 +1,6 @@
var config = require('./webpack.config');
config.entry = {
'antd': ['./index.js']
'antd': ['./index.js', './style/index.less']
};
config.externals = {
'react': {