Socket
Socket
Sign inDemoInstall

organizze-gulp-sass-bulk-import

Package Overview
Dependencies
16
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    organizze-gulp-sass-bulk-import

import directories in your SCSS


Version published
Weekly downloads
21
increased by10.53%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

organizze-gulp-sass-bulk-import

Modified gulp-sass-bulk-import original code in 2 aspects.

1 - Bulk @import paths will be transated to a relative path.

2 - Added support for general @import '*' rule that will fetch all files from the same dir ignoring only the calling file.

installation

npm install --save-dev organizze-gulp-sass-bulk-import

usage

in your .scss file

@import "some/path/*";

// becomes
// @import "some/path/file1.scss";
// @import "some/path/file2.scss";
// ...

in your gulpfile
var bulkSass = require('organizze-gulp-sass-bulk-import');

gulp.task('css', function() {
    return gulp
            .src(srcDir + 'stylesheets/app.scss')
            .pipe(bulkSass())
            .pipe(
                sass({
                    includePaths: ['src/stylesheets']
                }))
            .pipe( gulp.dest('./public/css/') );
});

Keywords

FAQs

Last updated on 03 May 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc