Ensure your CSS won't be discarded by IE 9 and below because of crazy stylesheets limitation of legacy IE.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.eslintrc
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

gulp-legacy-ie-css-lint Build Status npm version

A Gulp plugin that ensure your CSS won't be discarded by IE 9 and below because of crazy stylesheets limitation of legacy IE.

Usage

var gulp = require('gulp');
var legacyIeCssLint = require('gulp-legacy-ie-css-lint');

gulp.task('style', function() {
  gulp.src('./src/css/style.css')
  .pipe(legacyIeCssLint({
    throw: true,
    log: true
  }))
  .pipe(gulp.dest('./build'));
});

Example output:

gulp-legacy-ie-css-lint

Options

throw

Type: Bool

Default: true

When the selector count of a single stylesheet exceed 4095, throw a error so that the gulp task is stopped.

log

Type: Bool

Default: true

Log rules count and selector count for every file passed to gulp-legacy-ie-css-lint.

Scripts

$ npm run test
$ npm run coverage

License

MIT