Configuring grunt-contrib-sass with node-bourbon

I am trying to add bourbon depending on the project in which it is used grunt-contrib-sass. node-bourbon has the following to say about the integration of grunt and Sass:

grunt.initConfig({
  sass: {
    dist: {
      options: {
        // THIS IS THE LINE I ADDED TO MY CONFIG
        includePaths: require('bourbon').includePaths,
        outputStyle: 'compressed'
      },
      files: {
        'path/to/output.css': 'path/to/input.scss'
      }
    }
  }
});

However, when I run grunt, I get the following error:

OptionParser::InvalidOption: invalid option: --include-paths

This error appears with any array of paths specified in includePaths, and not just with bourbon.

What am I doing wrong?

+4
source share
1 answer

node-bourbonuses grunt-sass, not grunt-contrib-sass. Therefore, the option is not available, and you get this error.

, , includePaths loadPath. grunt-contrib-sass.

+11

All Articles