Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
node-sass-import
Advanced tools
Allows usage of @include (of .scss) akin to require (of .js) in node.js
Allows usage of (@include "some-sass-npm-module") akin to require("some-module") in node.js
$ npm install --save node-sass-import
Used in conjunction with node-sass. In a simple npm-only build setup, the example below in package.json should suffice.
{
"name": "your-package",
"description": "fun package",
"main": "index.js",
"scripts": {
"build-css": "node-sass test.scss dist/test.css --importer node_modules/node-sass-import"
}
}
You can now build your scss files as follows
$ npm run build-css
@import in sass can now be used just like a require statement. The example below imports the main scss file from the newsapps-syles npm module. At build time, all @import statements will be resolved locally or like npm modules. Also includes support for partial (e.g. _partial.scss).
@import "newsapps-styles";
.some-style {
color: $primary-blue;
}
Coming soon...
2016 MIT © Emmanuel (Manny) Narh
FAQs
Allows recursive import of SCSS components from local and/or node_modules directories using npm's module resolving algorithm
We found that node-sass-import 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.