Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
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.
The npm package gulp-sass-partials-imported receives a total of 179 weekly downloads. As such, gulp-sass-partials-imported popularity was classified as not popular.
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.