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

Flag images automatically included in asset compilation #3

Open
johnnyshields opened this issue Aug 21, 2013 · 2 comments
Open

Flag images automatically included in asset compilation #3

johnnyshields opened this issue Aug 21, 2013 · 2 comments

Comments

@johnnyshields
Copy link

It seems this gem includes every flag in the world into my assets, which goes through the compilation process. This is an annoyance and adds about ~15 seconds to the compilation process. Is there a way to do one of the following:

  • Generate a single sprite file for the flags
  • Selectively include only the flag from I18n.available_locales into the compilation process
  • Exclude all the flags from the compilation, and include the ones I want by hand
@glebtv
Copy link
Member

glebtv commented Aug 26, 2013

15 seconds seems like a lot
it should just copy the files without any processing
rails doesn't provide a way to selectively add images to precompile, so images should be moved out of default path, and it would need an initializer copying the images

Something like this: tsechingho/ckeditor-rails#21

@glebtv
Copy link
Member

glebtv commented Aug 26, 2013

I would welcome a pull request with this feature ;)

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