|
@ -20,7 +20,7 @@ function finalizeCompile() { |
|
|
let componentsLessContent = ''; |
|
|
let componentsLessContent = ''; |
|
|
// Build components in one file: lib/style/components.less
|
|
|
// Build components in one file: lib/style/components.less
|
|
|
fs.readdir(componentsPath, (err, files) => { |
|
|
fs.readdir(componentsPath, (err, files) => { |
|
|
files.forEach(file => { |
|
|
files.forEach((file) => { |
|
|
if (fs.existsSync(path.join(componentsPath, file, 'style', 'index.less'))) { |
|
|
if (fs.existsSync(path.join(componentsPath, file, 'style', 'index.less'))) { |
|
|
componentsLessContent += `@import "../${path.posix.join( |
|
|
componentsLessContent += `@import "../${path.posix.join( |
|
|
file, |
|
|
file, |
|
@ -192,4 +192,5 @@ module.exports = { |
|
|
}, |
|
|
}, |
|
|
generateThemeFileContent, |
|
|
generateThemeFileContent, |
|
|
bail: true, |
|
|
bail: true, |
|
|
|
|
|
tag: 'v4', |
|
|
}; |
|
|
}; |
|
|