- Copy these files to your Sass project.
- This fork-able version requires the typey Sass module. Add it to your package.json with:
npm install --save-dev typey
- Add Typey's Sass directory to your nodeSass'
includePaths
option.
var sass = require('node-sass'),
path = require('path');
sass.render({
file: scss_filename,
includePaths: [
path.dirname(require.resolve('typey'))
]
}, function(err, result) { /*...*/ });
If you are using libSass but not using node-sass, you probably already know how to include 3rd party libraries into your Sass project.
- Copy these files to your Sass project.
- This fork-able version requires the typey Sass module. Add typey's
stylesheets
directory to your libSass include paths in the "usual way".
In addition to copying these files to your Sass project, you'll also need to:
- Edit your
Gemfile
file to add:
gem 'typey', '~> 1.0.0'
- Optionally, edit your
config.rb
file to add:
require 'typey'
- Update your local Gems with:
bundle install