mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix: no style components
This commit is contained in:
parent
5128a718e1
commit
4dd1a45d8e
@ -51,7 +51,8 @@ log('Starting', 'build:style-entries');
|
||||
Object.keys(components).forEach((componentName) => {
|
||||
const dir = path.join(__dirname, '../../lib/', componentName, '/style');
|
||||
const file = path.join(dir, 'index.js');
|
||||
const content = `require('../../vant-css/${componentName}.css');`;
|
||||
const cssPath = path.join(__dirname, '../../lib/vant-css/', `${componentName}.css`);
|
||||
const content = fs.existsSync(cssPath) ? `require('../../vant-css/${componentName}.css');` : '';
|
||||
mkdir(dir);
|
||||
writeFile(file, content);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user