Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
gulp-concat-css
Advanced tools
Concatenates css files, bubbling up @import statements (as per the standard), and optionally rebasing urls and inlining local @import statements.
Install with npm.
npm install --save-dev gulp-concat-css
var gulp = require('gulp');
var concatCss = require('gulp-concat-css');
gulp.task('default', function () {
return gulp.src('assets/**/*.css')
.pipe(concatCss("styles/bundle.css"))
.pipe(gulp.dest('out/'));
});
TIP: for a proper import inlining and url rebase, make sure you set the proper base
for the input files.
concatCss(targetFile, options)
targetFile
: The relative path of the generated file containing the concatenated cssoptions
: (since 2.1.0)
inlineImports
: (default true
) Inline any local import statement foundrebaseUrls
: (default true
) Adjust any relative URL to the location of the target file.includePaths
: (default []
) Include additional paths when inlining importscommonBase
: (default to the base
property of the first file) Common base path from wich resolving files and urlsMIT @ Mario Casciaro
FAQs
Concatenate css files, rebasing urls and inlining @import
We found that gulp-concat-css 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.