sass+compass异常:error screen.scss (Line 3: File to import not found or unreadable: blueprint/reset.)

1. 收集问题

使用WebStorm工具创建个compass项目,当编辑scss文件时会自动编译为css文件,可就在编译为css的时候报错了!
sass+compass异常:error screen.scss (Line 3: File to import not found or unreadable: blueprint/reset.)_第1张图片

异常信息:导入的文件找不到或无法读取blueprint/reset

cmd.exe /D /C call "D:/laher/Program Files/ruby/Ruby24-x64/bin/scss.bat" --no-cache --update screen.scss:screen.css
      error screen.scss (Line 3: File to import not found or unreadable: blueprint/reset.)

Process finished with exit code 1

我们使用compass命令进行编译!
sass+compass异常:error screen.scss (Line 3: File to import not found or unreadable: blueprint/reset.)_第2张图片

编译通过!
由此可见是WebStorm的自动编译出了问题。

2. 解决问题

2.1 第一步

修改WebStorm关于Compass的配置,并且启用。
sass+compass异常:error screen.scss (Line 3: File to import not found or unreadable: blueprint/reset.)_第3张图片

2.2 第二步

修改原有的SCSS文件文件监听,删除SCSS 新增Compass SCSS,保存。
sass+compass异常:error screen.scss (Line 3: File to import not found or unreadable: blueprint/reset.)_第4张图片

sass+compass异常:error screen.scss (Line 3: File to import not found or unreadable: blueprint/reset.)_第5张图片

ProgramD:\laher\Program Files\ruby\Ruby24-x64\bin\compass.bat

Arguments:compile D:/laher/workspace/webstorm/sass/simple $UnixSeparators($FilePath$)$

OutputD:/laher/workspace/webstorm/sass/simple

3. 成功!!!

sass+compass异常:error screen.scss (Line 3: File to import not found or unreadable: blueprint/reset.)_第6张图片

你可能感兴趣的:(sass,compass,blueprint)