为了账号安全,请及时绑定邮箱和手机立即绑定

在idea上运行scss文件出现问题Individual stylesheets must be in the sass directory.

在idea上运行scss文件出现问题Individual stylesheets must be in the sass directory.

jakywu 2019-03-02 14:39:21
在idea上运行scss文件出现问题Individual stylesheets must be in the sass directory.我的idea配置是这样的ruby 可以运行,没有问题
查看完整描述

6 回答

?
jakywu

TA贡献1条经验 获得超0个赞

  1. 不要使用 compass sass 的 watcher 的配置,配置 scss 如图:
    image.png
    2. 完事运行可能出现问题
    --update base.scss:base.css error base.scss (Line 150: Invalid GBK character
    解决方法:找到 ruby 安装目录如:D:\soft\Ruby25-x64\lib\ruby\gems\2.5.0\gems\sass-3.7.3\lib 的 sass.rb 文件
    加代码:
    Encoding.default_external = Encoding.find('utf-8')

    完事即可使用scss编写

查看完整回答
反对 回复 2019-03-04
  • 6 回答
  • 0 关注
  • 2475 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信