example on how to use
See original GitHub issueOk so you give instructions and show how to install but not how to use.
I’ve got a an web app (not javascript) that has a template language and builds html files from templates and uses some css. How do I run it?
This isn’t very clear:
usage: purifycss <css> <content> [option ...]
options:
--min Minify CSS
--out [filepath] Filepath to write purified css to
--info Logs info on how much css was removed
-h, --help Prints help (this message) and exits
Report bugs to: https://github.com/purifycss/purifycss/issues
What’s css? a single file? multiple files? Can I point it at a webserver?
Same with content, am I meant to point it at a downloaded file built from the templates?
An example of running it manually without using grunt or gulp would be nice.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:10
- Comments:12 (2 by maintainers)
Top Results From Across the Web
How to use 'by' | Learn English
We use by to show how someone travels: They came by car/ by taxi/ by train/ by plane. Note: do not use 'the',...
Read more >12 Ways to Use "for Example" for Clearer Writing - wikiHow
1. Do this if your example has a subject and verb and can stand alone. When used at the beginning of the sentence,...
Read more >"an example of use" OR "an example of usage"
Within the phrase "how to use it", "use" is acting as a verb (and is acting on the object "it"). However: Here's an...
Read more >Use examples - Plain Language.gov
Examples help you clarify complex concepts, even in regulations. They are an ideal way to help your readers. In spoken English, when you...
Read more >How to Use Articles (a/an/the) - Purdue OWL
For example, if I say, "Let's read the book," I mean a specific book. If I say, "Let's read a book," I mean...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, Example (from the main repo):
bin/purifycss file_one.css file_two.css file_three.css index.html _frag.html app.js --out output.css --min --info
As the name suggests it, options are optionals. You can just go with --out, but --info is nice to see the cleaning efficiency, and --min for obvious loading reasons.Can someone tell me how can I run this against again multiple CSS files and get multiple CSS files as output (for example, I purify the CSS files in a directory and for
main.css
, I getclean_main.css
as output, forstyles.css
I getclean_styles.css
)? I can’t seem to figure out how to use the CLI