-
Notifications
You must be signed in to change notification settings - Fork 76
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
Fonts and Images #194
Comments
Well there is the |
Broken on develop? How about master? Also, is there any documentation on the UriRewriteFilter? I've never really used the filters before. I've looked at: http://jasonlewis.me/code/basset/4.0/filters but an example would be much appreciated. Thanks |
Is font awesome inside or outside of the |
Fontawesome is located in: ROOT_FOLDER/components/font-awesome/ Basset puts the builds in: Thanks |
Yeah that probably won't work too well. They're not web accessible.
|
hmmmm, This presents a real problem then. My app is meant to be nice and easy to install, clone the git repo (or download the zip and upload it) the install compose and "composer install". All the configs are in the git repo so I was hoping for everything to work out of the box. I don't believe there are any easy ways to move these without manually requiring users to do it. Any suggestions? :/ |
Why can't you put all your assets in public?
|
I could, but I'd have to move them manually. Font-awesome is installed via composer and composer puts them in /components as opposed to /public. Unless theres a way to change that? |
On the other hand, you should not manage your front-end assets with Composer. That's not what it was meant for nor what it's useful for. I recommend you switch to an actual assets manager like Bower and create the following files at the root of your repository :
{
"directory" : "public/components"
}
{
"dependencies": {
"font-awesome": "latest"
}
} |
What Maxime said. Composer a PHP dependency manager. Use Bower, it's really
|
Or if you want to stick with Composer, update your composer.json config setting to override the default location for components, e.g.
|
Hi, I am just new to Laravel and then to Basset which seems to me a great tool, thanks Jason ;) Eric |
For what it's worth, I solved the problem by adjusting the path in my .less file. Here's my directory tree:
My font-awesome variables.less file now contains the following line:
So that it points from the font-awesome .css file deep in the public/builds/... tree to the fonts directory in the root folder. Not ideal, but it works. A better solution would be the one eviweb suggested: copy arbitrary assets like fonts/images/etc. to the build directory. |
I don't know if this has bee answered before, but is there any way to make Basset handle fonts too?
The issue is, I use Fontawesome and Laravel. Basset obviously compiles all CSS to the builds folder in one nice css file. However, Fontawesome's Font files are in /components/fontawesome/font and the fontawesome css file references them relatively (via:
src: url('../font/fontawesome-webfont.eot?v=3.2.1'); )
This presents a problem, because the fonts aren't in /builds/font.
Now, I could alter the CSS files at source to reference them absolutely BUT my application is free to distribute, so site owners use composer to bring down the fontawesome files.
So, unless basset has a way to manage fonts I'm a little stuck.
Thanks
Tom
The text was updated successfully, but these errors were encountered: