mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Refactor on build to avoid compilling unncessary SFCs and copy all SFCs to dist
This commit is contained in:
parent
38fccede63
commit
05327ee35e
2 changed files with 3 additions and 8 deletions
|
@ -83,7 +83,7 @@ function addSFC() {
|
|||
fs.readdirSync(path.resolve(__dirname, './src/components/')).forEach(folder => {
|
||||
fs.readdirSync(path.resolve(__dirname, './src/components/' + folder)).forEach(file => {
|
||||
let name = file.split(/(.vue)$|(.js)$/)[0].toLowerCase();
|
||||
if (/\.vue$/.test(file)) {
|
||||
if (/\.vue$/.test(file) && (name === folder)) {
|
||||
addEntry(folder, file, name);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue