GitShow/addyosmani/gulp-uncss-task
addyosmani

gulp-uncss-task

[Deprecated] Use gulp-uncss instead please.

by addyosmani
Star on GitHubForknpm

JavaScript

62 stars9 forks6 contributorsQuiet · 11y agoSince 2013v0.2.2MIT

Meet the team

See all 6 on GitHub →
addyosmani
addyosmani11 contributions
tomByrer
tomByrer5 contributions
armno
armno2 contributions
stevemao
stevemao1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 3 discussions · Last activity 11y ago
See all on GitHub →
marcustisater
TypeError: must start with number, buffer, array or stringOpenIssue

TypeError: must start with number, buffer, array or string at new Buffer (buffer.js:67:11) Any ideas? Thank you

marcustisater · 10y ago
NikolaBreznjak
How to use gulp-uncss-task for remote filesOpenIssue

I've asked the question on StackOverflow: http://stackoverflow.com/questions/24538052/how-to-use-gulp-uncss-task-for-remote-files but just for clarity I'm c/p-ing this here: Preface: I'm using uncss and, as the instructions say, using it from a command line is straight forward: And, as stated this works with remote files (even php scripts), so that I can for example call: and it would work flawlessly. Also, I got it working in Node.js app (as per instructions from the documentation): I'm wondering why the comment up in the - I couldn't find any additional info for this? Actual question: Since I use gulp to run my build tasks I would like to use gulp-unss-task to achieve the same thing (uncssing the remote file) so that I could then pipe it further to the minimization task. As it seems from the documentation this is not possible, but would appreciate if someone dealt with this before and maybe has a solution. The usage docs for gulp-uncss-task:

NikolaBreznjak · 12y ago
timdp
CSS gets duplicatedOpenIssue

Addy recommended I open an issue for this, so here goes. Let's say I have a single HTML page that references a single stylesheet, and I want to check that stylesheet for unnecessary rules. I figured the following trivial gulpfile would work: Unfortunately, running results in containing the optimized content of _twice_. If I remove the reference to from , the resulting CSS is fine. However, adding a element after UnCSS processes the HTML is tedious and doesn't seem like the right approach, especially since UnCSS figures out the list of stylesheets from the HTML in the first place. I've tried passing an empty array to the function, as well as setting the to , but that didn't change anything. I also tried putting the source HTML and CSS in the package root directory, because I thought it might be something path-related; no luck though. To confirm, I tested with UnCSS itself. The following code works as expected, returning the optimized CSS a single time: I'm using gulp 3.2.2 and gulp-uncss-task 0.1.0, on Windows 8 x64. For the sake of completeness, here are my HTML and CSS: Am I missing something obvious? Thanks.

timdp · 12y ago

Recent fixes

View closed PRs →
stevemao
add deprecated in the title and give a link to gulp-uncssMergedPR

I think it would be great to add a link to gulp-uncss as people may not notice this is a deprecated module.

stevemao · 11y ago
guillaumevincent
Update README.mdMergedPR

markdown rendering remove code

guillaumevincent · 11y ago
armno
little updates on readme fileMergedPR

tiny little updates for the readme file. enable syntax highlighting for Usage code block (which is what I love to do for any readme files). correct to which (I think) should be the correct one in option.

armno · 12y ago
Structured data for AI agents

Repository: addyosmani/gulp-uncss-task. Description: [Deprecated] Use gulp-uncss instead please. Stars: 62, Forks: 9. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v0.2.2 (12y ago). Open PRs: 0, open issues: 3. Last activity: 11y ago. Community health: 42%. Top contributors: addyosmani, tomByrer, armno, stevemao.

·@ofershap

Replace github.com with gitshow.dev