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

Custom directories in app/assets #30

Open
akemrir opened this issue May 26, 2014 · 2 comments
Open

Custom directories in app/assets #30

akemrir opened this issue May 26, 2014 · 2 comments

Comments

@akemrir
Copy link

akemrir commented May 26, 2014

Hi,

how can I add custom directories for use with padrino-sprockets?
For example app/assets/fonts to work like image assets.

I have tried with passing these options:
sprockets({ paths: ['assets/stylesheets', 'assets/images', 'assets/javascripts', 'assets/fonts'], extra_paths: ['assets/fonts'] })

But without effect.

@i8ramin
Copy link

i8ramin commented Jun 3, 2014

Having the same issue as well. The following seems to do nothing:

sprockets minify: (Padrino.env == :production), paths: ['app/assets/bower_components']

@thatnerdjosh
Copy link

I figured this out by looking in the source code,

sprockets :minify => (Padrino.env == :production), :paths => ['assets/lib', 'assets/fonts', 'assets/videos']

That works, just call the url as assets/blah.js, css etc :)

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

3 participants