Socket
Socket
Sign inDemoInstall

grunt-selector4096

Package Overview
Dependencies
109
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    grunt-selector4096

Warn if CSS file has more than equal 4096 selectors.


Version published
Weekly downloads
13
decreased by-18.75%
Maintainers
1
Install size
1.24 MB
Created
Weekly downloads
 

Readme

Source

grunt-selector4096

Warn if CSS file has more than equal 4096 selectors.

Getting Started

This plugin requires Grunt ~0.4.2

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-selector4096 --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-selector4096');

The "selector4096" task

Run this task with the grunt selector4096 command.

Task targets, files and options may be specified according to the grunt Configuring tasks guide.

Usage examples

In this example, running grunt selector4096:all (or grunt selector4096 because selector4096 is a multi task) will count selectors in all CSS files under the src/css/ directory and their subdirectories, warn if they have more than eqall 4096 selectors, and abort.

grunt.initConfig({
  selector4096: {
    all: ['src/css/**/*.css']
  }
});

This plugin is read-only task, so you don't need to specify dest like grunt-contrib-jshint.

Contributing

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.

Release History

  • 2013-12-14 v0.1.0 Initial release

Keywords

FAQs

Last updated on 08 Apr 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc