
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
node-sass-imports
Advanced tools
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.
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.
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']);
});
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
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.
The npm package node-sass-imports receives a total of 1 weekly downloads. As such, node-sass-imports popularity was classified as not popular.
We found that node-sass-imports 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
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.