
Research
Security News
Malicious npm Packages Target BSC and Ethereum to Drain Crypto Wallets
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
gulp-sass-partials-imported
Advanced tools
It process scss partials files and add the files that import them to the pipe.
It process scss partials files and add the files that import them to the pipe.
Use it with gulp-cached and gulp-sass to create a watch task that avoid the re-compile of all the scss files in the project everytime you save one of them, saving a lot of time.
$ npm install --save-dev gulp-sass-partials-imported
Just add sassPartialsImported to the pipe
.pipe( sassPartialsImported(scss_dir, includePaths) )
scss_dir (string) [required]
Folder where all the scss files are
includePaths (string|Array) [optional]
Path string, or Array of paths, where look in to attempt to resolve your @import declarations. (same as includePaths of node-sass)
In the example below we have a watch
task that, everytime we save a partial file, adds to the pipe all the scss files that @import the partial file.
const gulp = require('gulp'),
const sass = require('gulp-sass');
const cached = require('gulp-cached');
const sassPartialsImported = require('gulp-sass-partials-imported');
let scss_dir = 'src/scss/';
let includePaths = ['src/scss/vendors'];
gulp.task('sass', () => {
gulp.src('src/*.scss')
.pipe(cached('sassfiles'))
.pipe(sassPartialsImported(scss_dir, includePaths))
.pipe(sass({ includePaths: scss_dir }).on('error', sass.logError))
.pipe(gulp.dest('dist'));
});
gulp.task('watch', function () {
gulp.watch('src/*.scss', ['sass'])
});
MIT © G100g(http://g100g.net) - Davide Cantelli (http://ww.davidecantelli.it)
FAQs
It process scss partials files and add the files that import them to the pipe.
We found that gulp-sass-partials-imported demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
Security News
TC39 advances 9 JavaScript proposals, including Array.fromAsync, Error.isError, and Explicit Resource Management, which are now headed into the ECMAScript spec.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.