Skip to content

Commit

Permalink
Merge pull request #596 from ant-design/fix-less
Browse files Browse the repository at this point in the history
fix: import CSS instead of LESS
  • Loading branch information
afc163 committed Nov 25, 2015
2 parents cd6509b + e6baea3 commit e3f3594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/prenpm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit e3f3594

Please sign in to comment.