npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gulp-sassc-shell

v1.0.0

Published

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

Downloads

9

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 before, be sure to check out the Getting Started guide. Once you're familiar with that process, you may install this plugin with this command:

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:

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.

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

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: [email protected] .

Release History

0.0.1 - 2018.06.18 - First release

License

MIT © Gyorgy Sagi