rake assets:precompile bug with rails and compass and “*”

六眼飞鱼酱① 提交于 2019-12-11 20:12:51

问题


I use rails 4.2.0 and compass-rails (2.0.2)

I have a css.scss file with

@import "compass/utilities/sprites";
@import "icons/*.png";
@include all-icons-sprites(true);

I have many image .png in app/assets/images/icons/XXX.png

I want deploy my app in production, it's work but with no assets, so I start

rake assets:precompile

in production environement.

An error occure:

rake aborted!
Sprockets::FileNotFound: couldn't find file 'icons/*.png'

I try to remove assets files in cache, nothing change.

details error: http://pastebin.com/6ggS3pP2

I think there is a problem with wildcard and path.

I try in dev ENV, nothing change...

I don't know what do more, what's the solution, plz?


回答1:


to fix it, I just use mster branch of git like :

gem 'compass-rails', github: 'Compass/compass-rails'


来源:https://stackoverflow.com/questions/27809308/rake-assetsprecompile-bug-with-rails-and-compass-and

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!