Comments (4)
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.
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.
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.
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)
- Incomplete css HOT 1
- Sync Multiple Vscode?
- Missing dependency of PhantomJS HOT 1
- Regex in src urls HOT 3
- JS errors without inline scripts HOT 1
- Fatal error: Cannot communicate with PhantomJS process: PhantomJS exited unexpectedly: read ECONNRESET HOT 2
- Not taking into account the classes that are added through angular HOT 5
- does it conflict with JQuery HOT 2
- bootstrap alert not processed HOT 1
- Grunt uncss fails silently mac HOT 2
- "ignoreSheets : [/fonts.googleapis/]" isn't ignoring Google fonts HOT 1
- Fatal error: connect ECONNREFUSED 127.0.1.1:80 HOT 2
- Fatal error: uncss/node_modules/css: unable to parse... Excessive slag in URI. HOT 2
- UnhandledPromiseRejectionWarning: Unhandled promise rejection HOT 2
- file.src should be file.orig.src (grunt 1.0.1)
- ignore doesn't work HOT 2
- GitHub Actions CI HOT 3
- Timing Problems with many files HOT 1
- Remove deprecated request package
- Does this work project-wide with SASS files?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-uncss.