Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
gulp-spriter
Advanced tools
gulp-spriter:帮助前端工程师将css代码中的切片图片合并成雪碧图,支持retina图片。
gulp-spriter使用spritesmith作为图片生成的基础算法
npm install gulp-spriter
导入gulp-spriter依赖:
var spriter = require("gulp-spriter");
gulpfile配置文件中增加task,如下:
gulp.task("css",["clean"],function(){
return gulp.src("./src/css/xxx.css")
.pipe(spriter({
sprite:"test.png",
slice:"./src/slice",
outpath:"./build/tests"
}))
.pipe(gulp.dest('./build/css'))
})
具体使用方式可以参考examples对应的实例
FAQs
the plugin to help UI Engineer creating css sprite
The npm package gulp-spriter receives a total of 2 weekly downloads. As such, gulp-spriter popularity was classified as not popular.
We found that gulp-spriter 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.