2

我刚开始在编码过程中使用 Autoprefixer。我正在使用 grunt-autoprefixer。https://github.com/nDmitry/grunt-autoprefixer

在我的 gruntfile.js

 sass: {
    dist: {
        options: {
            sourcemap: true
    },
    files:{
        'css/style.css': 'sass/style.scss'
    }
  }
},

autoprefixer: {
  dist: {
    options: {
      map: true
    },
    files:{
      'build/style.css': 'css/style.css'
    }
  }
},

源图被生成。但是,当我在 Chrome 中查看它时,它仍然显示 .css 而不是 .scss?

这里是源图。 https://drive.google.com/folderview?id=0B-PvLw2M9kBZZmRkMk9tekh6QWc&usp=sharing


文件架构截图

4

1 回答 1

0

我已经确定问题出在 Google Drive 上。我将所有代码都托管在 Google Drive 上,并直接在上面进行编码。

存在一些缓存和同步问题。所以在设置方面,一切都是正确的。

于 2014-01-21T09:50:06.900 回答