{"id":16440338,"url":"https://github.com/constgen/neutrino-middleware-sass-loader","last_synced_at":"2025-10-14T20:13:16.099Z","repository":{"id":74245138,"uuid":"288176332","full_name":"constgen/neutrino-middleware-sass-loader","owner":"constgen","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-16T22:13:13.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-14T20:13:14.824Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/constgen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-17T12:37:36.000Z","updated_at":"2021-03-16T22:13:12.000Z","dependencies_parsed_at":"2023-07-11T14:34:01.219Z","dependency_job_id":null,"html_url":"https://github.com/constgen/neutrino-middleware-sass-loader","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/constgen/neutrino-middleware-sass-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/constgen%2Fneutrino-middleware-sass-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/constgen%2Fneutrino-middleware-sass-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/constgen%2Fneutrino-middleware-sass-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/constgen%2Fneutrino-middleware-sass-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/constgen","download_url":"https://codeload.github.com/constgen/neutrino-middleware-sass-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/constgen%2Fneutrino-middleware-sass-loader/sbom","scorecard":{"id":303180,"data":{"date":"2025-08-11","repo":{"name":"github.com/constgen/neutrino-middleware-sass-loader","commit":"056150dfda7110879471f0befb5a7a587f66c0b7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T21:17:17.223Z","repository_id":74245138,"created_at":"2025-08-17T21:17:17.223Z","updated_at":"2025-08-17T21:17:17.223Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021006,"owners_count":26086946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T09:11:52.870Z","updated_at":"2025-10-14T20:13:16.077Z","avatar_url":"https://github.com/constgen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Neutrino Sass loader middleware\n\n[![npm](https://img.shields.io/npm/v/neutrino-middleware-sass-loader.svg)](https://www.npmjs.com/package/neutrino-middleware-sass-loader)\n[![npm](https://img.shields.io/npm/dt/neutrino-middleware-sass-loader.svg)](https://www.npmjs.com/package/neutrino-middleware-sass-loader)\n\n`neutrino-middleware-sass-loader` is a [Neutrino](https://neutrino.js.org) middleware for compiling styles with [Dart Sass](https://sass-lang.com/dart-sass). This middleware only transforms Sass to CSS. It is recommended to have `@neutrinojs/style-loader` (or its substitution) in the configuration to be able to compile Sass styles to JavaScript modules. Both SCSS and SASS syntaxes are supported.\n\n## Requirements\n\n* Node.js v10.13+\n* Neutrino v9\n\n## Installation\n\n`neutrino-middleware-sass-loader` can be installed from NPM. You should install it to `\"dependencies\"` (--save) or `\"devDependncies\"` (--save-dev) depending on your goal.\n\n```bash\nnpm install --save-dev neutrino-middleware-sass-loader\n```\n\n## Usage\n\n`neutrino-middleware-sass-loader` can be consumed from the Neutrino API, middleware, or presets.\n\n### In preset\n\nRequire this package and plug it into Neutrino. The following shows how you can pass an options object to the middleware, showing the defaults:\n\n```js\nlet sassLoader = require('neutrino-middleware-sass-loader')\n\nneutrino.use(sassLoader({\n   include: ['src', 'tests'],\n   exclude: [],\n   sass   : {}\n}))\n```\n\n* `include`: optional array of paths to include in the compilation. Maps to Webpack's rule.include.\n* `exclude`: optional array of paths to exclude from the compilation. Maps to Webpack's rule.include.\n* `sass`: optional [Sass options](https://github.com/sass/dart-sass/blob/master/README.md#javascript-api) config that is passed to the loader.\n\nIt is recommended to call this middleware after the `neutrino.config.module.rule('style')` initialization to avoid unexpected overriding. More information about usage of Neutrino middlewares can be found in the [documentation](https://neutrino.js.org/middleware).\n\n### In **neutrinorc**\n\nThe middleware also may be used together with another presets in Neutrino rc-file, e.g.:\n\n**.neutrinorc.js**\n\n```js\nlet web        = require('@neutrino/web')\nlet sassLoader = require('neutrino-middleware-sass-loader')\n\nmodule.exports = {\n   use: [\n      web(),\n      sassLoader()\n   ]\n}\n```\n\n### Imports paths\n\nThe loader can resolve paths in one of two modes: Sass or Webpack.\n\nWebpack's resolver is used by default. To use its advantages to look up the `modules` you need to prepend `~` to the path:\n\n```css\n@import \"~bootstrap/sass/bootstrap\";\n```\n\nOtherwise the path will be determined as a relative URL, `@import \"file\"` is the same as `@import \"./file\"`\n\nIf you specify the `includePaths` option, the Webpack's resolver will not be used. Modules, that can't be resolved in the local folder, will be searched in the given `includePaths`. This is Sass' default behavior. `includePaths` should be an array with absolute paths:\n\n```js\nlet sassLoader = require('neutrino-middleware-sass-loader')\n\nneutrino.use(sassLoader({\n   sass: {\n      includePaths: [\n         path.resolve(__dirname, 'node_modules')\n      ]\n   }\n}))\n```\n\n### Importing variables from JS\n\nSASS files can import variables from JS modules. Example:\n\n**vars.js**\n\n```js\nmodule.exports = {\n   'default-color': 'yellow',\n   'border'       : '2px solid red'\n}\n```\n\n**main.sass**\n\n```sass\nrequire('./vars.js');\n\n@import \"./other.sass\";\n\n.box:extend(.darkgreen) {\n  color: @default-color;\n  border: @border;\n  width: 200px;\n  height: 200px;\n}\n```\n\nIt is recommended to `require` all JS modules before any `@import` rules.\n\n## Rules\n\nThis is a list of rules that are used by `neutrino-middleware-sass-loader`:\n\n* `sass`: Compiles Sass styles to CSS styles. Contains loaders named: `resolve-url`, `sass` and `sass-var`.\n* `style`: Only necessary file extension added. CSS loader should be provided to correctly compile styles to JavaScript.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconstgen%2Fneutrino-middleware-sass-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconstgen%2Fneutrino-middleware-sass-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconstgen%2Fneutrino-middleware-sass-loader/lists"}