如何让 bourbon-neat 与 Roots 一起工作

How to get bourbon-neat to work with Roots

所以我正在试验 Roots 静态站点生成器,我很难让它通过 app.coffee 文件导入 Bourbon-neat。

我的 app.coffee 看起来像这样:

js_pipeline  = require 'js-pipeline'
css_pipeline = require 'css-pipeline'
browserify   = require 'roots-browserify'
sass         = require 'node-sass'

module.exports =
  ignores: ['readme.md', '**/layout.*', '**/_*', '.gitignore', 'ship.*conf']

  extensions: [
    browserify(files: 'assets/js/main.coffee', out: 'js/build.js')
    js_pipeline(files: 'assets/js/*.coffee'),
    css_pipeline(files: 'assets/css/*.scss')
  ]

  'coffee-script':
    sourcemap: true

  jade:
    pretty: true

  sass:
    // includePaths: require('bourbon-neat').includePaths
    // includePaths: [require('bourbon-neat').includePaths]
    includePaths: ['node_modules/bourbon-neat/app/assets/stylesheets/']

评论includePaths是我尝试过的其他东西。我已经阅读了提到需要通过 require('bourbone-neat').includePaths 的 bourbon-neat 文档,但它似乎不起作用。

在我的 .scss 文件中尝试 @import "neat" 时出现的错误是:

Error: File to import not found or unreadable: neat.

注意:root 好像没有标签。

对于其他人来说,我能够让这个工作。这是我的 app.coffee:

js_pipeline  = require 'js-pipeline'
css_pipeline = require 'css-pipeline'
browserify   = require 'roots-browserify'

module.exports =
  debug:true
  ignores: ['readme.md', '**/layout.*', '**/_*', '.gitignore', 'ship.*conf']

  extensions: [
    browserify(files: 'assets/js/main.coffee', out: 'js/build.js')
    js_pipeline(files: 'assets/js/*.coffee')
    css_pipeline(files: 'assets/css/*.scss')
  ]

  'coffee-script':
    sourcemap: true

  jade:
    pretty: true

  scss:
      includePaths: require('bourbon-neat').includePaths