remove completely, #567

This commit is contained in:
afc163 2015-12-08 18:17:42 +08:00
parent f3d5607f13
commit 69dc8e5fc4
3 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,5 @@
import React from 'react';
require('./style/index.less');
const antd = {
Affix: require('./components/affix'),
Datepicker: require('./components/datepicker'),

View File

@ -32,6 +32,7 @@ window.React = React;
window.ReactDOM = ReactDOM;
window['object-assign'] = require('object-assign');
window['classnames'] = require('classnames');
require('./importCss');
antd.Datepicker.locale = {
en_US: require('../components/datepicker/locale/en_US'),

View File

@ -6,8 +6,7 @@ var pkg = require('../package');
var originalIndex = fs.readFileSync(path.join(cwd, 'lib/index.js'), 'utf-8');
var newIndex = originalIndex
.replace(/\/components\//g, '/')
.replace(/require\(\'\.\/package.json\'\)/g, "require('./package')")
.replace("require('./style/index.less')", "");
.replace(/require\(\'\.\/package.json\'\)/g, "require('./package')");
fs.writeFileSync(path.join(cwd, 'lib/index.js'), newIndex, 'utf-8');
fs.writeFileSync(
path.join(cwd, 'lib/package.js'),