You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
457 B

10 years ago
var fs = require('fs');
var cwd = process.cwd();
var path = require('path');
var originalIndex = fs.readFileSync(path.join(cwd, 'lib/index.js'), 'utf-8');
10 years ago
var newIndex = originalIndex
9 years ago
.replace(/\/components\//g, '/');
10 years ago
fs.writeFileSync(path.join(cwd, 'lib/index.js'), newIndex, 'utf-8');
9 years ago
var antdCss = path.join(cwd, 'dist/antd.css');
9 years ago
fs.createReadStream(antdCss)
.pipe(fs.createWriteStream(path.join(cwd, 'lib/index.css')));
console.log('prenpm done');