{"id":15066611,"url":"https://github.com/lwdgit/fis-parser-sass2","last_synced_at":"2025-08-11T22:35:18.577Z","repository":{"id":33591202,"uuid":"37242840","full_name":"lwdgit/fis-parser-sass2","owner":"lwdgit","description":"A parser plugin for fis to compile scss file.","archived":false,"fork":false,"pushed_at":"2016-01-30T12:54:07.000Z","size":11268,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-05T19:46:57.180Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lwdgit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-11T06:14:32.000Z","updated_at":"2024-07-12T06:33:51.000Z","dependencies_parsed_at":"2022-08-26T15:10:15.412Z","dependency_job_id":null,"html_url":"https://github.com/lwdgit/fis-parser-sass2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lwdgit/fis-parser-sass2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwdgit%2Ffis-parser-sass2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwdgit%2Ffis-parser-sass2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwdgit%2Ffis-parser-sass2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwdgit%2Ffis-parser-sass2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lwdgit","download_url":"https://codeload.github.com/lwdgit/fis-parser-sass2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwdgit%2Ffis-parser-sass2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269787309,"owners_count":24475713,"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-08-10T02:00:08.965Z","response_time":71,"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-09-25T01:09:52.177Z","updated_at":"2025-08-11T22:35:18.548Z","avatar_url":"https://github.com/lwdgit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fis-parser-sass2 ![NPM version](https://badge.fury.io/js/fis-parser-sass2.png)\n\n[![NPM Download](https://nodei.co/npm-dl/fis-parser-sass2.png?months=1)](https://www.npmjs.org/package/fis-parser-sass2)\n\nA parser plugin for fis to compile sass file.\n\n（基于node-sass的fis插件，支持expanded,及预定义变量。本插件基于fis官方插件修改，不过依赖库由```fis-sass```更改为```node-sass```）\n\n## install\n\n    $ npm install -g fis-parser-sass2\n\n```javascript\n//fis-conf.js\n\nfis.config.set('modules.parser.scss', 'sass2');\nfis.config.set('settings.parser.sass2.define', {\n            'enable': true,\n            '$bgcolor': '#d8222d',\n            'color': 'black'\n        });\n        \n//你可以通过设置该属性来控制sass文件里的的变量\n\nfis.config.set('settings.parser.sass2.outputStyle', 'expanded');\n//the default is expanded，默认为expanded,你可以手动设置其他属性\n\nfis.config.set('settings.parser.sass2.sourceMap', false);\n//use sourcemap or not, default is true，是否启用sourceMap,默认为开启\n\nfis.config.set('roadmap.ext.scss', 'css');\n\n```\n\n```javascript\n//fis3-conf.js\nfis.match('**.scss', {\n    parser: fis.plugin('sass2', {\n        define: {\n            'enable': true,\n            '$bgcolor': '#d8222d',\n            '$color': 'black'\n        }\n    }),\n    rExt: 'css'\n})\n```\n\n```scss\n//example a.scss\n@if ($enable) {\n    body {\n        background: $bgcolor;\n        color: $color;\n    }\n}\n```\n\n    $ fis release -d ./output\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwdgit%2Ffis-parser-sass2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flwdgit%2Ffis-parser-sass2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwdgit%2Ffis-parser-sass2/lists"}