PurgeTSS #12582
macCesar
started this conversation in
Show and tell
PurgeTSS
#12582
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
purgeTSS
Is a small CLI utility that creates a clean
app.tss
file by copying only the classes used in your XML Files. It works with tailwind.tss, fontawesome.tss, materialicons.tss, lineicons.tss and your custom styles file.Installation
Install it globally on your machine via NPM.
> [sudo] npm i -g purgetss
Purging classes
To parse all your XML files, run
purgetss
inside your project's root directory.> purgetss
purgetss
will extract all the classes found and copy them along with all the styles originally declared inapp.tss
.There are several commands at your disposal:
app.tss
file.config.js
file inside thepurgetss
folder at the root of your project.tailwind.tss
file with the attributes defined in./purgetss/config.js
. It will also generate a customfontawesome.tss
file if you have a Font Awesome Pro Account.app/assets/fonts
folder.purgetss
every time you compile your project. ( Highly recommended in every project ).purgeTSS
to the latest version. Or use purgetss sudo-update if you needsudo
to install npm modules.To learn more please read the documentation here.
Check out the Titanium App showcasing
tailwind.tss
here.Beta Was this translation helpful? Give feedback.
All reactions