Answer the question
In order to leave comments, you need to log in
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
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...
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 questionAsk a Question
731 491 924 answers to any question