
Security News
Next.js moves to scheduled security releases
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.
grunt-css-collect
Advanced tools
使用MD5版本控制CSS及CSS中引用的图片文件
npm install grunt-css-collect
添加下面一行到你的Gruntfile.js:
grunt.loadNpmTasks('grunt-css-collect');
然后为插件增加像下面这样的配置:
"css-collect": {
main: {
options: {
dest_dir: "dist",
resource_map_file: "dist/css-resource-map.json",
base_url: "http://example.com/dist/",
web_root: "."
},
files: {
src: ["css/*.css"]
}
}
}
处理后的css及图片文件存放目录
资源映射文件路径
type: String
Default: '/'
CSS文件引用的图片的基准地址
type: String
Default: '.'
Web服务器根目录
FAQs
Grunt plugin css-collect
The npm package grunt-css-collect receives a total of 3 weekly downloads. As such, grunt-css-collect popularity was classified as not popular.
We found that grunt-css-collect 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
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.