node-juice-sass

1.0.0 • Public • Published

node-juice-sass

Forked from https://github.com/kjbrum/juice/

_juice.scss as an npm packaged, libsass module with no changes.

No changes have been made to _juice.scss.

Based on version 1.0.0

###Install

npm install node-juice-sass --save-dev

Stylesheet usage

Use either method below for your chosen task runner (Gulp, Grunt, etc.), then in your stylesheet:

@import "juice";

gulp.js Usage

Using the gulp-sass plugin.

var gulp = require('gulp');
var sass = require('gulp-sass');

gulp.task('sass', function () {
  gulp.src('path/to/input.scss')
    .pipe(sass({
      // includePaths: require('node-juice-sass').with('other/path', 'another/path')
      // - or -
      includePaths: require('node-juice-sass').includePaths
    }))
    .pipe(gulp.dest('path/to/output.css'));
});

Grunt Usage

Using grunt-sass

The grunt-sass task uses node-sass (LibSass) underneath, and is the recommended way to use Grunt with node-neat.

Example config:

grunt.initConfig({
  sass: {
    dist: {
      options: {
        // includePaths: require('node-juice-sass').with('other/path', 'another/path')
        // - or -
        includePaths: require('node-juice-sass').includePaths
      },
      files: {
        'path/to/output.css': 'path/to/input.scss'
      }
    }
  }
});

Readme

Keywords

none

Package Sidebar

Install

npm i node-juice-sass

Weekly Downloads

5

Version

1.0.0

License

MIT

Last publish

Collaborators

  • ranjandatta