Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
grunt-csscomb
Advanced tools
The grunt plugin for sorting CSS properties in specific order.
This plugin requires Grunt >=1.0.x
.
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-csscomb --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-csscomb');
In your project's Gruntfile, add a section named csscomb
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
csscomb: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
}
}
});
Type: String
Default value: null
A string value that is used to specify custom-csscomb.json file path.
grunt.initConfig({
csscomb: {
foo: {
files: {
'dest/resorted-foo.css': ['src/foo.css'],
}
},
bar: {
files: {
'dest/resorted-foo.css': ['src/foo.css'],
'dest/resorted-bar.css': ['src/bar.css']
}
}
}
});
You can set the config
option if you want to use the configuration which you are accustomed to.
grunt.initConfig({
csscomb: {
dist: {
options: {
config: '/path/to/config.json'
},
files: {
'dest/resorted-foo.css': ['src/foo.css']
}
}
}
});
You can process many individual files of directory with a few additional properties.
grunt.initConfig({
csscomb: {
dynamic_mappings: {
expand: true,
cwd: '/assets/css/',
src: ['*.css', '!*.resorted.css'],
dest: '/assets/dest/css/',
ext: '.resorted.css'
}
}
});
If you provide only a src
with no value for dest
, then dest
will automatically be set to the src
directory.
grunt.initConfig({
csscomb: {
src_only: {
src: ['foo/bar.css'],
ext: '.resorted.css'
}
}
});
grunt-csscomb
API doesn't change.sortOrder
to config
.FAQs
The grunt plugin for sorting CSS properties in specific order.
The npm package grunt-csscomb receives a total of 619 weekly downloads. As such, grunt-csscomb popularity was classified as not popular.
We found that grunt-csscomb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
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.