Browse Source

fix: import CSS instead of LESS

pull/596/head
Benjy Cui 9 years ago
parent
commit
e6baea33a6
  1. 2
      scripts/prenpm.js

2
scripts/prenpm.js

@ -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…
Cancel
Save