You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

csslint-loader

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csslint-loader

CSSLint loader for Webpack

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
993
7.7%
Maintainers
1
Weekly downloads
 
Created
Source

csslintloader for webpack

Install

$ npm install csslint-loader

Usage

In your webpack configuration

module.exports = {
  // ...
  module: {
    loaders: [
      {
        css: /\.css$/,
        loader: "style?css!csslint"
      },
      {
        scss: /\.scss$/,
        loader: ExtractTextPlugin.extract("style", "css!postcss!csslint!sass")
      }
    ]
  }
  // ...
}

Options

You can pass the following options as a query string

  • configFile (default: looks for .csslintrc in your root directory.)
    Pass in the location/name of file if different
loader: "style?css?csslint?configFile=./config/cs"
  • failOnWarning (default: true)
    If you don't pass in any config file, csslint's default setting sets all rules to 1 (warning)
    Forcing an error by default on warnings. Can disable by passing false as value
loader:"style?css?csslint?failOnWarning=false"
  • failOnError (default: true)
    Passing this as true will fail the build and give the correct exit status

Keywords

csslint

FAQs

Package last updated on 26 May 2016

Did you know?

Socket

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