簡體   English   中英

將sass autoprefixer與Roots Toolkit一起使用

[英]Use sass autoprefixer with Roots Toolkit

我剛剛開始使用roots(roots.cx),我真的很喜歡它,但是看起來一切都是為Stylus設置的,而我更像是一個Sass用戶。 我已經可以使用roots-sass了,一切正常,但是現在我需要使用autoprefixer。

我嘗試了與手寫筆相同的設置:

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

但是不起作用,我檢查了協議文檔/ scss,關於sass及其選項的討論不多...如果有的話...

任何幫助表示贊賞! 謝謝

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

然后將master.scss重命名為master.css.scss並將以下內容添加到app.coffee

autoprefixer = require 'autoprefixer'

module.exports =

  postcss:
    use: [
      autoprefixer
    ]

這是一個示例存儲庫

如果您還有其他問題,請告訴我們。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM