gulp-csslint-sourcemap-reporter
v0.1.1
Published
Console reporter adjusting error location by source map for the gulp-csslint module (https://www.npmjs.org/package/gulp-csslint)
Downloads
20
Readme
gulp-csslint-sourcemap-reporter
Console reporter adjusting error locations by the source map.
Install
First, install gulp-csslint, gulp-sourcemaps, gulp-csslint-sourcemap-reporter as a development dependency:
npm install --save-dev gulp-csslint-sourcemap-reporter
Then, add it to your gulpfile.js.
Examples
Less
gulp.src('less/**/*.less'))
.pipe(sourcemaps.init()) // Attach source maps
.pipe(sass()) // Compile SCSS
.pipe(csslint()) // Check the compiled code!
.pipe(csslint.reporter(sourcemapReporter)); // Report with adjusted location
SCSS
gulp.src('less/**/*.less'))
.pipe(sourcemaps.init()) // Attach source maps
.pipe(sass()) // Compile SCSS
.pipe(csslint()) // Check the compiled code!
.pipe(csslint.reporter(sourcemapReporter)); // Report with adjusted location