-
Notifications
You must be signed in to change notification settings - Fork 32
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
Error I get after minifying stylesheet #8
Comments
Is your call to |
This is in a blade file (header.blade.php): <link href="/themes/bootstrap/assets/frontend/layout/css/themes/blue.css" rel="stylesheet" id="style-color"> However when I turn it into: {!! Minify::stylesheet('/themes/bootstrap/assets/frontend/layout/css/themes/blue.css') !!} I get the mentioned error. |
I should also mention the path is correct and has been tested many times before using minify. |
I have also emptied the ignore environments: 'ignore_environments' => array(
), |
What's the path to the blue.css relative to the laravel root? |
Can you also post the code where you are doing the |
return Theme::view('frontend/index-header-fix'); |
Not familiar with a return view('frontend/index-header-fix'); Just to test it so that it throws the real exception, rather then the exception that the view threw an exception? |
Guess what you asked made me realize the problem. The theme package I'm using (caffeinated/themes) uses the public folder as it's view folder for themes, while your package is looking for them in the resources folder. So this is why the exception is being thrown. Is there a way to overwrite the "resouces" folder to "public" folder without changing the core files in your package, for example adding a parameter to the config file? |
Hmmm, caffeinated/themes uses the public folder for views? That shouldn't have an effect on the way the package works... As long as the CSS files are in the |
As you requested I used plain old "return view" and seems there is nothing wrong with the package: <script src="/asset_builds/js/builds/d063a6361d72a3d99c6bfe3a3ebd4b781429738218.js"></script> So the problem must be the theme package (caffeinated/themes). |
Hmm interesting... Wonder why it is doing that... |
Could be a namespace issue... tried this? {!! \Minify::stylesheet('/themes/bootstrap/assets/frontend/layout/css/themes/blue.css') !!} with the |
I found out why when I managed to make it work on a simple return view. Thanks for the hints and the help :) |
No problem, glad you got it working! |
The text was updated successfully, but these errors were encountered: