Skip to content

Instantly share code, notes, and snippets.

View t1mwillis's full-sized avatar
🤔

Tim Willis t1mwillis

🤔
View GitHub Profile
@t1mwillis
t1mwillis / purgeUnusedCss.js
Last active February 6, 2023 00:03
Vuetify Helper Class Finder
/**
* Scan through all vue components and search for helper styles that are used
* Then return those that aren't so that they can be purged
*/
const { readFileSync } = require('fs')
const { sync } = require('glob')
// Vuetify exists in both pages, components and layouts
const everyVueComponent = sync('./+(components|pages|layouts)/**/*.vue')