question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

example on how to use

See original GitHub issue

Ok 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:open
  • Created 8 years ago
  • Reactions:10
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Kuzcoocommented, Jul 7, 2015

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.

0reactions
Daksh777commented, Dec 27, 2021

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 get clean_main.css as output, for styles.css I get clean_styles.css)? I can’t seem to figure out how to use the CLI

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found