Autoprefixer:生成了Sourcemap但它无法正常工作?

时间:2014-01-20 09:34:37

标签: sass gruntjs source-maps

我刚开始在编码过程中使用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


Screenshot of files architecture

1 个答案:

答案 0 :(得分:0)

我发现问题是因为Google云端硬盘问题。 我将所有代码托管在Google云端硬盘上并直接编写代码。

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