-
Notifications
You must be signed in to change notification settings - Fork 2
Possibility to use resources/assets folder as source #6
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
Conversation
This reverts commit e3037b2.
If I understand correctly:
The laravel documentation shows files being compiled from So, I do not think it is normal to store CSS/JS files here. I have not seen other projects that do this. Your CSS files will probably reference images and fonts. These will need to be in the public folder. So, your CSS/LESS will be full of relative paths such as BTW - I think your requirements could be implemented more simply, with a one-line code change. In the service provider, if you change |
|
Same page says that if you want to combine multiple .css, it's a good idea to store these source files in resources/assets/css. And this is the thing that I want to achieve :) Changing public_path() to base_path() I think doesn't solve the problem. I want to place source uncompressed and unminimized files outside public path. I think another way to solve this issue, use predefined file system from |
|
It seems what I want to achieve is possible to do by mixing Classy-Geeks/laravel-potion with your library. Code in that case a bit ugly but it seems it works. I think I close this pull request. |
I did try this (but only briefly, as I have been ill). It worked OK for me. What problems did you have? The CSS URL rewriter must modify relative URLs (e.g. "../../public/img/" -> "../img/"). I think there may be difficulties if the source/destination are in different filesystems. |
|
I hope you get well soon :) You did amazing job with this plugin. And maybe you are right here. I jumped from other framework to Laravel not long time ago so maybe I don't know something and I can't understand everything as I should. Maybe best idea to leave this for a while :) |
Laravel 5 comes with
resources/assetsfolder. I think it's a good idea to use it instead of public folder as source so I made update.If user wants to use resources folder instead system, he can just set
use_resourcesvar totrue. Otherwise everything will stay.I have tested for my own project and everything works. However I haven't wrote all tests needed tests to test this new functionality... I'm not a good tests writer :(
Still I hope that this my pull request will be accepted and I don't need to maintain my fork.