Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compass 合成雪碧图时引用不存在文件 #28

Open
Secbone opened this issue Aug 9, 2016 · 1 comment
Open

compass 合成雪碧图时引用不存在文件 #28

Secbone opened this issue Aug 9, 2016 · 1 comment

Comments

@Secbone
Copy link
Member

Secbone commented Aug 9, 2016

当引用雪碧图中不存在的文件的时候,会报:

error schoolopen/dist/_/static/sass/page.scss (/Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.3/lib/compass/core/sass_extensions/functions/image_size.rb:31:in `get_size_for_png': undefined method `unpack' for nil:NilClass)

当把这个文件补上以后,依然报错,并且不能正常生成雪碧图 ( 0 bytes )

目前解决方案是,把原来的雪碧图删除,重新生成

看有没有别的方案可以自动 fix

@luckyadam
Copy link
Member

恩恩,尝试解决一下~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants