Code Monkey home page Code Monkey logo

Comments (8)

addyosmani avatar addyosmani commented on July 20, 2024

No worries at all! This is expected. The current parses being used by unCSS are very limited and ideally we want them to be getting run through PhantomJS. I plan on moving grunt-uncss over to using Helium once it has been ported to Node.

from grunt-uncss.

addyosmani avatar addyosmani commented on July 20, 2024

Can you try this out with the latest version of uncss and grunt-uncss and let me know how it goes?

from grunt-uncss.

webjay avatar webjay commented on July 20, 2024

It works. Thanks.

from grunt-uncss.

mohammedzamakhan avatar mohammedzamakhan commented on July 20, 2024

I just wonder how uncss works, since some of the css classes will not be found on page, and will be added through the javascript... !

I have such doubts that don't allow me use such great ideas :(

from grunt-uncss.

Tobino avatar Tobino commented on July 20, 2024

You can use the ignore option.

options: {
ignore: ['#added_at_runtime', '.created_by_jQuery']
}

uncss/uncss#5

from grunt-uncss.

mohammedzamakhan avatar mohammedzamakhan commented on July 20, 2024

as @giakki says he will be integrating with PhantonJS, which means that it will solve most of the issues :)

@Tobino it's not easy when you use plugins like Jquery UI or Bootstrap, since you cannot check all the css changes that the plugins make, and it would be hell for us to manually add them...

from grunt-uncss.

addyosmani avatar addyosmani commented on July 20, 2024

Yep. For all dynamic JS use-cases, this will be solved once the PhantomJS branch of the associated project by @giakki becomes the default.

On that note, @giakki do you need help with testing out the branch? I'd be happy to see how well it works for the task's use-cases on a few projects if so.

from grunt-uncss.

giakki avatar giakki commented on July 20, 2024

Sure, it would be great!

from grunt-uncss.

Related Issues (20)

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.