路径:C:\Ruby23-x64\lib\ruby\gems\2.3.0\gems\sass-3.4.25\lib\sass => engine.rb
安装的版本不一样,有可能路径也不一致,但最终都是找到engine.rb这个文件来修改.
// engine.rb
...
require 'sass/error'
require 'sass/importers'
require 'sass/shared'
require 'sass/media'
require 'sass/supports'
module Sass
# 让sass支持中文注释
Encoding.default_external = Encoding.find('utf-8') //增加的代码
# A Sass mixin or function.
...