# fis-parser-sass2

> A parser plugin for fis to compile sass file.

Latest version **1.2.0** (published 2016-01-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install fis-parser-sass2
pnpm add fis-parser-sass2
yarn add fis-parser-sass2
bun add fis-parser-sass2
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2016-01-23 |
| First published | 2015-06-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | liwen |
| Maintainers | lwdgit |
| Keywords | fis, sass |

## Links

- npm: https://www.npmjs.com/package/fis-parser-sass2
- Repository: https://github.com/lwdgit/fis-parser-sass2
- Homepage: https://github.com/lwdgit/fis-parser-sass2#readme
- Issues: https://github.com/lwdgit/fis-parser-sass2/issues
- npm.io page: https://npm.io/package/fis-parser-sass2

## Dependencies (1)

- [node-sass](https://npm.io/package/node-sass.md) ^3.3.2

## Recent versions

- 1.2.0 (latest) — 2016-01-23
- 1.1.9 — 2016-01-23
- 1.1.8 — 2015-09-14
- 1.1.7 — 2015-09-02
- 1.1.6 — 2015-09-01
- 1.1.4 — 2015-08-19
- 1.1.3 — 2015-08-18
- 1.1.2 — 2015-08-18
- 1.1.1 — 2015-08-18
- 1.1.0 — 2015-08-18
- 1.0.0 — 2015-07-16
- 0.0.3 — 2015-06-12
- 0.0.2 — 2015-06-12
- 0.0.1 — 2015-06-11

## README

# fis-parser-sass2 ![NPM version](https://badge.fury.io/js/fis-parser-sass2.png)

[![NPM Download](https://nodei.co/npm-dl/fis-parser-sass2.png?months=1)](https://www.npmjs.org/package/fis-parser-sass2)

A parser plugin for fis to compile sass file.

（基于node-sass的fis插件，支持expanded,及预定义变量。本插件基于fis官方插件修改，不过依赖库由```fis-sass```更改为```node-sass```）

## install

    $ npm install -g fis-parser-sass2

```javascript
//fis-conf.js

fis.config.set('modules.parser.scss', 'sass2');
fis.config.set('settings.parser.sass2.define', {
            'enable': true,
            '$bgcolor': '#d8222d',
            'color': 'black'
        });
        
//你可以通过设置该属性来控制sass文件里的的变量

fis.config.set('settings.parser.sass2.outputStyle', 'expanded');
//the default is expanded，默认为expanded,你可以手动设置其他属性

fis.config.set('settings.parser.sass2.sourceMap', false);
//use sourcemap or not, default is true，是否启用sourceMap,默认为开启

fis.config.set('roadmap.ext.scss', 'css');

```

```javascript
//fis3-conf.js
fis.match('**.scss', {
    parser: fis.plugin('sass2', {
        define: {
            'enable': true,
            '$bgcolor': '#d8222d',
            '$color': 'black'
        }
    }),
    rExt: 'css'
})
```

```scss
//example a.scss
@if ($enable) {
    body {
        background: $bgcolor;
        color: $color;
    }
}
```

    $ fis release -d ./output

---
_Source: https://npm.io/package/fis-parser-sass2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
