# gulp-sassc-shell

> Compile SASS to CSS faster than any other tool using LibSASS's sassc binary from gulp.

Latest version **1.0.0** (published 2018-06-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-sassc-shell
pnpm add gulp-sassc-shell
yarn add gulp-sassc-shell
bun add gulp-sassc-shell
```

## 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.0.0 |
| Published | 2018-06-20 |
| First published | 2018-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gyorgy Sagi |
| Maintainers | gyorgy.sagi |
| Keywords | sassc, sass, compile, libsass, gulp |

## Links

- npm: https://www.npmjs.com/package/gulp-sassc-shell
- npm.io page: https://npm.io/package/gulp-sassc-shell

## Dependencies (5)

- [gulp](https://npm.io/package/gulp.md) ^3.9.1
- [chalk](https://npm.io/package/chalk.md) ^1.0.0
- [which](https://npm.io/package/which.md) ^1.0.5
- [child_process](https://npm.io/package/child_process.md) ^1.0.2
- [lodash.clonedeep](https://npm.io/package/lodash.clonedeep.md) ^4.5.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-06-20
- 1.0.1 — 2018-06-20
- 0.0.4 — 2018-06-20
- 0.0.3 — 2018-06-18
- 0.0.2 — 2018-06-18
- 0.0.1 — 2018-06-18

## README

# gulp-sassc-shell

> If your SASS compiles slow, then try this plugin, compile SASS to CSS faster then ever before using libsass from Gulp using shell.
This plugin works with sassc binary compiled for you platform.
For compiling sassC on you platform follow this guide: https://github.com/sass/sassc .

## Getting Started
This plugin requires Gulp `~3.9.1`

If you haven't used [Gulp](https://gulpjs.com/) before, 
be sure to check out the [Getting Started](https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md) guide.
Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install gulp-sassc-shell --save-dev
```

Once the plugin has been installed, it may be enabled inside your
Gulpfile with this line of JavaScript or with the matchdep npm package (gulp-*) syntax:

```js
const sassc = require('gulp-sassc-shell');
```

## The sassc task

### Overview
In your project's directory, add a task with any name you want, and select the *scss file from your project, then pipe it to
the plugins function. 

```js
gulp.task('build-cssC', function () {
	return gulp.src('./scss/*.scss').pipe(
		sassc({
			outputStyle: 'nested',
			sourceMap: true,
			precision: 3,
			destination: "css/dist"
		})
	);
});
```

### Options
This plugin only support the options that sassc binary does. These are the following:

#### outputStyle
Alias: `style`
Type: `String`
Default value: `'nested'`

Output style. Can be `nested`, `compact`, `compressed`, `expanded`.

#### precision
Type: `String`
Default value: `'3'`

How many digits of precision to use when outputting decimal numbers.

#### loadPath
Type: `String|Array`

Add a (or multiple) Sass import path.

#### sourceMap
Type: `String`  
Default: `false`

If set to true a sourceMap uri will be injected to the end of the destination file.

#### destination
Type: `String`  
Default: `false`

Destination is a required property to use sassc binary. Sassc binary will get this parameter to generate the css to this directory.

### Usage Examples

#### Default Options

```js
gulp.task('build-cssC', function () {
	return gulp.src('./scss/*.scss').pipe(
		sassc({
			outputStyle: 'nested',
			sourceMap: true,
			precision: 3,
			destination: "css/dist"
		})
	);
});
```

## Contributing
Feedbacks are welcome.
If you want to contribute, send a mail to me: gyorgy.sagi@w5labs.com .

## Release History
0.0.1 - 2018.06.18 - First release

## License

MIT © [Gyorgy Sagi](http://w5labs.com)

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