D
D
Dmitry Katyushin2015-05-08 16:29:34
css
Dmitry Katyushin, 2015-05-08 16:29:34

Problem with uncss (Gulp) plugin?

Hello. Before that, there were no problems with uncss , I could insert at least 3 different frameworks, add my own styles, and the output was code in a very small weight (uncss cuts out unnecessary styles). Now I want to completely switch to the UiKit Framework . The problem is that it cuts out the code, everything seems to be correct, but at the end it turns out that it does not work as it should (I checked and the problem is in the css file) - for example, I add a modal window - uncss finds all the styles associated with it (I checked .min.css and they are there, but they don't work.What's wrong?Mb someone faced a similar problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Zachinalov, 2015-05-08
@SanDiesel

Guess on the accordion example in Bootstrap. When the js plugin is running, the regular markup
will add the in class here, which provides the display of content.
Can uncss keep track of classes assigned by scripts? Unlikely...
Are there universal classes in frameworks that are not tied to parent blocks, assigned by scripts and used for the same purpose, but in different blocks? Oh sure...

A
Anton Sensoria, 2015-09-01
@AntonSensoria

The most frequently asked question by developers about UnCSS, or the unused CSS stripping process, is whether it can also work with styles that are dynamically injected into the page. Our answer is yes. This is made possible by the fact that UnCSS works in tandem with PhantomJS. Developers get between 10 and 120kb of savings on a typical Bootstrap page, and UnCSS works just as well with other frameworks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question