From e6baea33a663fd0685c4e0a757a4f3b7177c1213 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Wed, 25 Nov 2015 18:19:45 +0800 Subject: [PATCH] fix: import CSS instead of LESS --- scripts/prenpm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/prenpm.js b/scripts/prenpm.js index d5762460b8..ca97b8f68a 100644 --- a/scripts/prenpm.js +++ b/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'),