Ordered the classes in tw-settings.json

This commit is contained in:
Nik
2023-02-03 12:14:06 +11:00
parent 11bdc8316d
commit 3e9d832345
2 changed files with 68 additions and 67 deletions

View File

@@ -124,7 +124,8 @@ function generateKeyWordsFromProps() {
}
}
}
writeFileSync('scripts/tw-settings.json', JSON.stringify({ "tailwindCSS.classAttributes": [...propSet] }, null, '\t'));
const finalProps = Array.from(propSet).sort()
writeFileSync('scripts/tw-settings.json', JSON.stringify({ "tailwindCSS.classAttributes": [...finalProps] }, null, '\t'));
}
extractScriptsFromComponents('src/lib/components');