jtgrimes / less4laravel Goto Github PK
View Code? Open in Web Editor NEWBringing Less to Laravel
License: MIT License
Bringing Less to Laravel
License: MIT License
Noob to Laravel/Composer here, but I believe this is because of the dependency definition.. I'm assuming that with 4.1 the illuminate support is 4.1.* rather than 4.0.* and therefore causing this issue?
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for jtgrimes/less4laravel dev-master -> satisfiable by jtgrimes/less4laravel[dev-master].
- Conclusion: remove laravel/framework 4.1.x-dev
- jtgrimes/less4laravel dev-master requires illuminate/support 4.0.* -> satisfiable by laravel/framework[4.0.x-dev, v4.0.0, v4.0.0-BETA2, v4.0.0-BETA3, v4.0.0-BETA4, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5], illuminate/support[4.0.x-dev, v4.0.0, v4.0.0-BETA2, v4.0.0-BETA3, v4.0.0-BETA4, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5].
- Can only install one of: laravel/framework[4.1.x-dev, 4.0.x-dev].
- Can only install one of: laravel/framework[v4.0.0, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.0-BETA2, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.0-BETA3, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.0-BETA4, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.1, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.2, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.3, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.4, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.5, 4.1.x-dev].
- don't install illuminate/support 4.0.x-dev|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.0|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.0-BETA2|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.0-BETA3|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.0-BETA4|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.1|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.2|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.3|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.4|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.5|don't install laravel/framework 4.1.x-dev
- Installation request for laravel/framework 4.1.* -> satisfiable by laravel/framework[4.1.x-dev].
Installation failed, reverting composer.json to its original content.
It seems that the current implementation doesn't support variable override across files.
If a variable is set, it's not possible to change it in a parent file.
Works:
@var1: 40px;
.class1 {
height: @var1; }
@var1: 60px;
Doesn't work:
(file1.less):
@var1: 40px;
.class1 {
height: @var1; }
(file2.less):
@import "file1.less";
@var1: 60px;
I have been working with the Warp 7 framework for the past year, and having this possibility, makes it possible to define a default value, and then override it. Some frameworks (like uikit) rely on this feature.
Here:
$ php artisan config:publish Jtgrimes/less4laravel
it is:
$ php artisan config:publish jtgrimes/less4laravel
J -> j
Thanks
I just installed via composer and then added the provider and alias.Once this was done I added: {{ Less:to('lessfile') }} to my view.
This keeps resulting in the following error:
Symfony \ Component \ Debug \ Exception \ FatalErrorException
syntax error, unexpected ':', expecting ',' or ';'
Hope you can help
I used the suggestion, but it worked:
Less::to('filename', ['media'=>'print'])
And thanks for sharing!
I would love it if I had the ability to output the css as minified.
Any possibility to add this feature?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.