Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
gulp-css-image
Advanced tools
Readme
==============
Gulp task for generate css/scss classes from the existing images
var cssimage = require("gulp-css-image");
gulp.task("cssimage", function(){
return gulp.src("images/**/**")
.pipe(cssimage())
.pipe(gulp.dest("./image.css"))
});
> ls -l ./images
1.jpg
image.css
/* This file is generated */
.img_1{
width: 400px;
height: 300px;
background-image: url(1.jpg);
background-size: 400px 300px;
}
If you want generate scss use scss
options
var cssimage = require("gulp-css-image");
gulp.task("cssimage", function(){
return gulp.src("images/**/**")
.pipe(cssimage({
css: false,
scss: true,
name: "image.css"
}))
.pipe(gulp.dest("."))
});
/* This file is generated */
@mixin img_1(){
width: 400px;
height: 300px;
background-image: url(1.jpg);
background-size: 400px 300px;
}
img_1__width: 400px;
img_1__height: 300px;
gulp-css-image is gulp plugin and use css-image module functionality. Full description of option's configuration read css-image
###Default options
0.0.3 - bug fix (add lodash to deps)
0.0.2 - add name
option of generated file
0.0.1 - release
FAQs
A plugin for Gulp
The npm package gulp-css-image receives a total of 31 weekly downloads. As such, gulp-css-image popularity was classified as not popular.
We found that gulp-css-image demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.