
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
grunt-prefix-css
Advanced tools
Grunt task to prefix all rules from css-files with some selector
Grunt task to prefix all rules from css-files with some selector
This plugin requires Grunt ~0.4.5
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-prefix-css --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-prefix-css');
In your project's Gruntfile, add a section named prefix_css
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
prefix_css: {
options: {
// Task-specific options go here.
}
},
});
options: {
prefix: '.test',
fileSrc: 'test/fixtures/123.css',
fileDest: 'test/tmp/123result.css',
separator: '\n'
}
Type: String
Default value: ', '
A string value that is used to prefix all of your css with.
Type: String
Default value: '.'
A string value pointing to the source .css file.
Type: String
Default value: ','
Type: String
Default value: ','
grunt.initConfig({
prefix_css: {
options: {
prefix: '.test',
fileSrc: 'test/fixtures/123.css',
fileDest: 'test/tmp/123result.css',
separator: '\n'
}
},
});
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
(Nothing yet)
FAQs
Grunt task to prefix all rules from css-files with some selector
The npm package grunt-prefix-css receives a total of 1 weekly downloads. As such, grunt-prefix-css popularity was classified as not popular.
We found that grunt-prefix-css 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
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.