
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
grunt-css-base64image
Advanced tools
Base64 images in your css file.
This plugin requires Grunt ~0.4.4
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-css-base64image --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-css-base64image');
css-base64image任务使用css-base64-images项目编码图片。 这个版本是fork自https://github.com/maxzhang/grunt-base64image, 追加了css的相对路径和绝对路径的功能
指定CSS源目录
指定CSS中相对路径的目录, 如果没有指定,那么默认采用styles
指定CSS中"/image/a.png"这样的绝对路径的的根目录
指定输出目录
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-css-base64image');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
base64image: {
css: {
styles: 'app/styles/',
root : "src/images",
relative: 'src/images/',
dest: 'dest/styles/base64/'
}
}
});
};
FAQs
Base64 images in your css file.
We found that grunt-css-base64image 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.