diff --git a/index.js b/index.js index 15568140ae..d05db9d308 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,5 @@ import React from 'react'; -require('./style/index.less'); - const antd = { Affix: require('./components/affix'), Datepicker: require('./components/datepicker'), diff --git a/scripts/demo.js b/scripts/demo.js index d2a4d5d16a..fc03b41014 100644 --- a/scripts/demo.js +++ b/scripts/demo.js @@ -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'), diff --git a/scripts/prenpm.js b/scripts/prenpm.js index f6b55cd9af..a9882a228a 100644 --- a/scripts/prenpm.js +++ b/scripts/prenpm.js @@ -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'),