1,102 karma · joined Jun 12, 2015 (11y ago) · 1,205 submissions
comment 9y ago · link · parent
In my view, there are still a huge room of applications where wireless and sensor combined, and we already have web/native platforms. This is so exciting development!
comment 11y ago · link · parent
IMHO, do it offline and out of browser would be easier. But I also think doing it directly with the codes can be hard too since there are so many way that those css will be added to templates.
comment 11y ago · link · parent
comment 11y ago · link · parent
The script basically does:
1. Use REGEX match all css classes, `cat` into one place
2. Read the class line by line and search in html,js files to see if this css is used (even support #addClass from js)
2.1 it also supports several class adding styles e.g. class="abc", class: "abc", :class=> 'abc' or even "xxx" class in this: class="abc xxx ijk"
2.2 People even do this in js: $modal.append($('<div class="modal-close-icon"></div>')); and the REGEX can also detect this lol.
[1] https://gist.github.com/50kudos/3028fac585eda85aea9a
You can adapt my REGEX, and custom your directory where those css files are in.
Simply copy the code and save into your filename.sh, and can run safely because my script don't write any file of your project.