Coder Social home page Coder Social logo

Comments (4)

addyosmani avatar addyosmani commented on September 14, 2024

I think that this is something possible, but wouldn't be on the block until after a stable release of the project. Right now there are currently still a number of selectors (arguably more complex ones) where we break on and I'd love for us to optimize those first and then move on to these interesting other use-cases. Does that make sense? :)

from grunt-uncss.

nicdaCosta avatar nicdaCosta commented on September 14, 2024

100%, thank you :)

I didn't think at this stage it would be possible as I am sure there were still a few cases that would have needed to have been resolved, as you mentioned. It would make sense to get a stable release first before diverging into other use cases.

I guess I was more curious to see if something like that would be possible in the future as I was chatting with some teams about implementing something like this and one of the main aspects that kept coming up was preprocessor support.

Anyway, thanks for the feedback. Will keep a close eye on this :)

from grunt-uncss.

koriolis avatar koriolis commented on September 14, 2024

Source maps are a possibility or take advantage of the debug mode of SASS (to give an example I'm more familiar with) that bind the compiled css line to the SCSS source files
Either way implementing this with preprocessors will be huge for those who use frameworks like bootstrap and foundation on their pre-compiled versions.

from grunt-uncss.

addyosmani avatar addyosmani commented on September 14, 2024

Btw, I published an example of how I feel uncss should be used in a preprocessor workflow: https://github.com/addyosmani/grunt-uncss-sass-example tl;dr - execute it after you've compiled your Sass/Less near the end of your build process, pass in the relevant pages and rewire where your pages are pointing to to reference the newly tidied stylesheet.

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.