-
Notifications
You must be signed in to change notification settings - Fork 43
Description
Hi, it would be awesome to support node-sass includePaths feature with this project!
In my fork I've made some changes in order to support it! I'm not pushing a request because I don't use compass, bower nor diamonds so I don't know how this affects those but I've tested it on my sass project, which uses grunt-sass (so node-sass) and it works flawlessly, it just has to be tested with other supported tools!
To support the includePaths it's pretty simple: just create a index.js file where you will export the path to the scss folder:
var path = require( "path" );
module.exports = {
includePaths: [
path.join( __dirname, "scss" )
]
};and then in the package.json file just change the main file to index.js
In this way, I can easily install this plugin with npm and require the file in my gulp, grunt or pure node file.
Then In my scss file I just have to @import typi;
That's pretty simple!
I'm asking this because in this way code is much more mantainable! No copy-paste required!