mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
fix scripts
Conflicts: package.json
This commit is contained in:
parent
efcc8c5cb2
commit
e924c57296
@ -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');
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
var config = require('./webpack.config');
|
||||
config.entry = {
|
||||
'antd': ['./index.js']
|
||||
'antd': ['./index.js', './style/index.less']
|
||||
};
|
||||
config.externals = {
|
||||
'react': {
|
||||
|
Loading…
Reference in New Issue
Block a user