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

Non-standard assets.prefix #132

Open
alaz opened this issue Mar 22, 2017 · 0 comments
Open

Non-standard assets.prefix #132

alaz opened this issue Mar 22, 2017 · 0 comments

Comments

@alaz
Copy link

alaz commented Mar 22, 2017

Hello,

The first of all, disclaimer. I am a newbie in Ruby and Rails, that's why my question is probably naive.

I have a Rails app where I would like to serve assets from non-standard prefix. So I have in config/initializers/config.rb:

Rails.application.config.assets.prefix = "/assets3"

And in application.scss I've made the following change:

$fa-font-path: "font-awesome/";
@import "font-awesome-sprockets";
@import "font-awesome";

Is this idiomatic enough, so that I shall not have any problems in development / production? Or is there any better approach?

Best,
Alexander

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

1 participant