mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
Merge pull request #596 from ant-design/fix-less
fix: import CSS instead of LESS
This commit is contained in:
commit
e3f3594f33
@ -7,7 +7,7 @@ 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')", "require('../style/index.less')");
|
||||
.replace("require('./style/index.less')", "require('./index.css')");
|
||||
fs.writeFileSync(path.join(cwd, 'lib/index.js'), newIndex, 'utf-8');
|
||||
fs.writeFileSync(
|
||||
path.join(cwd, 'lib/package.js'),
|
||||
|
Loading…
Reference in New Issue
Block a user