
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
gulp-csstree
Advanced tools
CSS Tree lint plugin for gulp 3
First, install gulp-csstree
as a development dependency:
npm install --save-dev gulp-csstree
Then, add it to your gulpfile.js
:
var csstree = require('gulp-csstree');
gulp.task('css', function () {
gulp.src('./styles/*.css')
.pipe(csstree())
.pipe(gulp.dest('build'));
});
var csstree = require('gulp-csstree');
gulp.task('css', function () {
gulp.src('./styles/*.css')
.pipe(csstree({ formatter: formatterFn }))
.pipe(gulp.dest('build'));
});
formatterFn
is a function like this:
function formatterFn(report, file) {
// some code, that outputs a report data...
}
Formatter function will be called for every file which has an invalid css.
Pipe the file stream to csstree.failAfterError()
to fail on errors.
var csstree = require('gulp-csstree');
gulp.task('css', function () {
gulp.src('./styles/*.css')
.pipe(csstree())
.pipe(csstree.failAfterError())
.pipe(gulp.dest('build'));
});
FAQs
CSS Tree lint plugin for gulp 3
We found that gulp-csstree 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.