Giter VIP home page Giter VIP logo

purgecss-docs's People

Contributors

ahus1 avatar aryehraber avatar calinou avatar coliff avatar cristijora avatar daniel15 avatar ddzieduch avatar ffloriel avatar finmavis avatar gitbook-bot avatar hongbo-miao avatar hsi avatar jesseljohn avatar jsnanigans avatar lucaperret avatar lucleray avatar mannil avatar maoberlehner avatar mblancodev avatar mrkuzio avatar n1kk avatar niksmac avatar sarahdayan avatar taylorbryant avatar tbjgolden avatar tehpsalmist avatar than avatar valantonini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

purgecss-docs's Issues

How to suppress output in terminal?

I'm using the CLI tool via an NPM script, and a configuration file. There's a huge amount of output in the terminal which causes me to lose my place WRT other output. How do I suppress it?

can purgecss start ignore @imported css files

Hello,

Is there a way to ignore imported css files. I've tried the following but it doesn't seem to work :(

/*styles.css*/

/* purgecss start ignore */
@import "~react-datepicker/dist/react-datepicker.css";
/* purgecss end ignore */

Wordpress: I do what, where?

I feel like the documentation for WordPress could be a little more meatier. I does not mention where these snippets should be added.

If I might add.
I expect it is meant for the the purgecss config file. But what if you are using webpack? Webpack with post css (postcss config) and so on.
This I suspect is general for more of the guides.

I myself is trying to implement purgecss in a webpack config with postcss (postcss config) in a WordPress theme

Feature Request: Whitelist all rules from a file

It would be so much easier if I could whitelist all rules from a file instead of having to specify the rules individually.

My usecase is that I have a prism.css code highlighting theme that defines custom rules for tokens.

Comments don't work as expected for nested selectors in SCSS

Expected outcome

.page .selector-1 { color: blue; }
.page .selector-2 { color: red; }

Reality

.page {
  /* purgecss start ignore */
  .selector-1 { color: blue; }
  .selector-2 { color: red; }
  /* purgecss end ignore */
}

leaves me with:

.page {
  /* purgecss start ignore */
  /* purgecss end ignore */
}

while

/* purgecss start ignore */
.page {
  .selector-1 { color: blue; }
  .selector-2 { color: red; }
}
/* purgecss end ignore */

works as expected.

I guess this is a bug? If not, lets turn this baby into a feature!

Add more information about whitelisting.

Is your feature request related to a problem? Please describe.

pseudo-elements like :before are considered as children e.g selector:
i.flag.us:before

When I wanted whitelist selectors connected with flag icons which are build like one above I
used whitelistPatterns: [/flag/] pattern but it didn't work.

i.flag - selector passed test
i.flag.us:before - selector was purged

I had to use: whitelistPatternsChildren: [/flag/]

Describe the solution you'd like
It would be good if such information would be added in documentation, maybe add an example?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.