
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
gulp-vcl-preprocessor
Advanced tools
The VCL preprocessor as a Gulp task.
var vcl = require('gulp-vcl-preprocessor');
gulp.task('css', function(){
gulp.src('app/vcl/*.styl')
.pipe(vcl({
// optional options, get passed to vcl-preprocessor
}))
.pipe(gulp.dest('dist/css'));
});
output
Specifies the output file. Defaults to the input file name plus the .css
extension. If the package
is set to true the output will default to
style.css
.
Example:
index.styl
→ index.css
package.json
→ style.css
package
Pre-process a package instead of a single file. This fetches all dependencies and includes them in the final build.
The includeDevDependencies
property that gets passed to the preprocessor can
be quite useful when processing a package in development. It will include the
dev dependencies as well as the normal ones.
Example:
gulp.task('css', function(){
gulp.src('./package.json')
.pipe(vcl({
package: true, // parses input as package.json instead of trying to pre-process
output: 'main.css', // output will be written to dist/css/main.css
includeDevDependencies: true // gets passed to the vcl-preprocessor
}))
//.pipe(cssmin())
.pipe(gulp.dest('dist/css'));
});
FAQs
The VCL preprocessor as a gulp task
We found that gulp-vcl-preprocessor 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.