New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-sass-imports

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-sass-imports

A simple script you can add to any task runner to determine what files are imported by a given sass file. Especially useful for watch tasks in grunt/gulp.

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

node-sass-imports

node-sass-imports is a simple script that finds what files are being imported by a given file in Sass. This is especially useful for watch tasks so you don't have to manually list what files to watch for changes. Instead, using this plugin, you pass in your main file to a watch task and all of your imports are watched automatically.

Install & Usage

npm install node-sass-imports

Using this plugin in a gulp watch task.

gulp.task('watch', function () {
    var sassimports = require('node-sass-imports');

    gulp.watch(sassimports(scss_filename), ['scss_task']);
});

Future

This project will of course need to have options in the future that may be necessary for sass imports, like using the indented syntax. I would also like to add some functionality that allows for the original list of files to be updated without having to restart the watch task. This project will also need to have some tests implemented for the different sass syntaxes and task runners.

FAQs

Package last updated on 23 Feb 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc