Questions tagged [laravel-elixir]

Laravel Elixir is a library for Laravel that provides an API for defining basic Gulp streaming build system tasks. It is included with the base install of Laravel 5.

411 questions
0
votes
2 answers

Loop a Stylus command in Elixir

I have switchable themes and colors for my site, and I need Elixir/Gulp to render all the possible theme-color combinations as CSS files. Here's my gulpfile.js: var gulp = require('gulp'), notify = require('gulp-notify'), elixir =…
Emphram Stavanger
  • 4,158
  • 9
  • 35
  • 63
0
votes
1 answer

Appending the parent selector to the end generates the incorrect result with Elixir/Libsass

I have the following SCSS: .btn { color: #000; @at-root { a#{&} { display: inline-block; } } } I'm expecting the following CSS: .btn { color: #000; } a.btn { display: inline-block; } But when I compile it…
Vn.
  • 37
  • 4
0
votes
1 answer

Laravel Elixir / Gulp: path to less file

I was trying to make "backend/frontend" separated folder structure for assets in my Laravel 5.1 project, using bower and custom less, css and js scrips. Currently my assets folder structure is next: * resources/assets/ * --frontend/ * ----css/ *…
0
votes
3 answers

Laravel Elixir / Less include path as folder

I have been looking but cannot find a way to add a folder to the less include path. or "namespace" it. Basically rather then "bootstrap" being done like so: elixir(function(mix) { mix.less('app.less', 'public/css/', { paths: [ …
Jordan Ramstad
  • 169
  • 3
  • 8
  • 37
0
votes
1 answer

gulp watch not watching imported less files

i'm using Laravel 5.1, which ships with laravel elixir - a wrapper for gulp. My gulpfile.js looks like this: var elixir = require('laravel-elixir'); elixir(function(mix) { mix.less('app.less'); }); And app.less looks like this: @import…
spooky
  • 421
  • 5
  • 20
0
votes
1 answer

How to use preinstalled node modules from laravel-elixir in Laravel 5

Laravel elixir already comes with bunch of its own dependent node modules. How to use that modules instead of creating dependency in the root package.json. For example, I want to use "del" package which is already there in…
Dipendra Gurung
  • 5,720
  • 11
  • 39
  • 62
0
votes
1 answer

Git keeps deleting Laravel Elixir (Gulp) generated files

I've been working on a Laravel/AngularJS project in a local branch for a few weeks. I checked the status before committing, and got these Laravel Elixir generated files: modified: public/angular_merge/all.js modified: …
user1894292
  • 829
  • 1
  • 8
  • 19
0
votes
2 answers

Laravel Elixir not working

I have some stylesheet and some scripts for admin panel and public files . I want to compile both with laravel elixir . But Not working . Just compile admin styles and scripts . How can i do both ? Here is my code: var elixir =…
Saiful
  • 33
  • 9
0
votes
2 answers

Laravel + Elixir: importing bootstrap less error

I've installed bootstrap with bower into /vendor/bower_components folder. Also I have an app.less file with this import: @import '/vendor/bower_components/bootstrap/less/bootstrap'; For the time being it worked, when I run gulp I got public.css…
Victor
  • 5,073
  • 15
  • 68
  • 120
0
votes
1 answer

Laravel Elixir - Compile/concat all less files into one css file?

So I have my custom less styles in my custom/module folder. They will all be compiled but the problem is it's creating an individual css file for each of the less files. How can I get EVERYTHING, including the my boostrap/vendor plugins etc to stack…
Miura-shi
  • 4,409
  • 5
  • 36
  • 55
0
votes
1 answer

Laravel Elixir: Watch all files in a given directory?

In Grunt, I could specify a regular expression like the following to compile all files in the given directory. "<%= path.build.less %>/custom/modules/**/*.less" I keep going over the videos and docs on laravel and laracasts but I don't see this…
Miura-shi
  • 4,409
  • 5
  • 36
  • 55
0
votes
2 answers

gulp cannot find module 'notify-send' on Laravel 5 Homestead

I'm working with Laravel 5 (Elixir) and homestead v2.5 in Ubuntu 14.10. When I typed gulp and press enter in homestead ssh, I found the following error: Error: Cannot find module './lib/notifiers/notify-send' at Function.Module._resolveFilename…
Surahman
  • 1,040
  • 9
  • 15
0
votes
2 answers

Gulp didn't install on Laravel Homestead VM (from Windows) and no node_modules folder exists in the directory with package.json?

I got Laravel Homestead up and running, except when I issue this ssh command: gulp I get this error: Local gulp not found in ~/projects/laravel Try running: npm install gulp That's when I noticed there was no node_modules folder at all in this…
prograhammer
  • 20,132
  • 13
  • 91
  • 118
0
votes
2 answers

Laravel Gulp Elixir with Sass and including libraries

I've just started using Laravel 5.0 and noticed it comes installed with Gulp and it's own library called Elixir. Looks good, however I'm having trouble including libraries such as Susy and Breakpoint to run with it. In a typical Gulp setup I would…
Liam Chapman
  • 140
  • 3
  • 10
0
votes
1 answer

Laravel elixir issue

I'm on L5, using laravel-elixir and it mysteriously works sometimes but most of the time it doesn't. Gulp is detecting file changes but the new files are unchanged. Here's my gulpfile.js: process.env.DISABLE_NOTIFIER = true; var elixir =…
Petter Thowsen
  • 1,697
  • 1
  • 19
  • 24
1 2 3
27
28