2016-06-10 27 views
0

我刚开始使用根(roots.cx),我真的很喜欢它,但它看起来像是为Stylus设置的一切,而我更像是一个sass用户。我已经能够使用root-sass并且一切正常,但我现在需要autoprefixer。使用sass autoprefixer和Roots工具箱

我尝试同样的设立是为手写笔:

sass: 
    use: [axis(), rupture(), autoprefixer()] 
    sourcemap: true 

但不工作,我检查符合文件/ SCSS并没有太多谈论青菜及其选项......如果有任何...

任何帮助表示赞赏! 感谢

回答

1
  • npm install postcss --save
  • npm install autoprefixer --save

然后重命名master.scssmaster.css.scss,并添加以下到app.coffee

autoprefixer = require 'autoprefixer' 

module.exports = 

    postcss: 
    use: [ 
     autoprefixer 
    ] 

这里是一个sample repository

让我们知道您是否还有其他问题。