
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
grunt-scss-image-helpers
Advanced tools
Creates variables for Compass-like image helpers for url, width and height of images.
Grunt tasks to replace Compass image dimension helpers. It is recommended to run this task with watch task on image folder only.
Type: String
Default: ''
Path to image folder. All image names are created relatively to this folder.
Type: String
Default: grunt-images
Prefix for SCSS variables. These variables are created: $grunt-images-names
, $grunt-images-widths
, $grunt-images-heights
, $grunt-images-base64
and $grunt-images-relative-path
.
Type: Boolean
Default: false
If set to true
, task generates file names with timestamps to invalidate browser cache.
Type: String
Default: ''
All image paths in css are prefixed with this path. For example path ../img/
and image foo.png
become ../img/foo.png
.
Type: Integer
Default: 10240
Maximum file size for base64 encoding. Images bigger than that won't be encoded.
grunt.initConfig({
scss_images: {
dist: {
options: {
imageRoot: 'assets/img/',
prefix: 'grunt-images',
antiCache: true,
relativePath: '../img/',
size: 4096
},
files: {
'assets/scss/_images.scss': ['assets/img/*.png']
}
}
}
});
grunt.loadNpmTasks('grunt-scss-image-helpers');
grunt.registerTask('default', ['scss_images']);
MIT License • © Daniel Cirmaciu
FAQs
Creates variables for Compass-like image helpers for url, width and height of images.
We found that grunt-scss-image-helpers 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.