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
6
votes
3 answers

vue 2.0 Failed to mount component: template or render function not defined

I am using a Laravel Vue setup and pulling in Laravel Elixir, Webpack and laravel-elixir-vue-2 package. I have looked at several other SO questions and I know this is usually a problem with not referencing the standalone version of vue.js However,…
retrograde
  • 2,979
  • 6
  • 28
  • 54
6
votes
1 answer

Laravel "npm install" downloads 30.000+ items

I am following the Laravel docs and wanted to install Elixir for managing sass and other preprocessors. But as I start "npm install" from the laravel root folder, I end up with: 114.316.724 bytes (220,3 MB on disk) for 35.861 items in the…
Edmond Tamas
  • 3,148
  • 9
  • 44
  • 89
6
votes
1 answer

Uncaught SyntaxError: Invalid or unexpected token in file compiled by Browserify

My project is based on Laravel and makes use of Laravel Elixir in order to compile and minify the client side code (which is written in ECMAScript 6). I noticed that if I make any change to the client side code, then compile everything again using…
siannone
  • 6,617
  • 15
  • 59
  • 89
6
votes
1 answer

Laravel elixir on linux

I'm using Linux Mint and I'm trying to run compile sass file. I have installed npm and node. But when I run gulp , it doesn't compile and it doesn't make css file in public directory. When I run it, itdoesn't show any error or anything. How should…
ivva
  • 2,819
  • 9
  • 31
  • 64
6
votes
0 answers

Babel ES2015 Object.assign transform config in Laravel Elixir

I am using knockout.js components where Laravel passes configuration information. The knockout code lists default options, and merges them with the laravel parameters, using ES2015 (new Javascript) e.g: this.options = {}; const defaults = { …
brianlmerritt
  • 2,644
  • 1
  • 34
  • 39
6
votes
2 answers

Installing CKEditor with npm

I am trying to install CKEditor in my project. I am using Laravel. I know I could download the files but I like making my life difficult and I decided that I want to install CKEditor as a npm dependency. As stated in their documentation here, I…
Hector Ordonez
  • 1,044
  • 1
  • 12
  • 20
6
votes
3 answers

Laravel, elixir and gulp

I've gulpfile.js with content var gulp = require('gulp');//this is working gulp.task('default', function() { });//this is working var elixir = require('laravel-elixir');//this is NOT working Running "gulp" in cmd I get a…
user2301515
  • 4,903
  • 6
  • 30
  • 46
5
votes
3 answers

Laravel elixir Sass error

I'm installing laravel elixir on my latest homestead machine , working on laravel 5.3, i followed the exact documentation to install laravel elixir, but it didn't worked , it's throwing error regarding sass file. here is snapshot How do i solve this…
Rahul
  • 929
  • 2
  • 8
  • 17
5
votes
1 answer

Vue JS with vue-router not loading vueified components

I am developing a web application which makes use of vue-router for an SPA with a Laravel 5 backend. It makes use of .vue files for app components which are run through laravel-elixir-vueify in order to create the required JavaScript. I have set up…
Daniel Waghorn
  • 2,997
  • 2
  • 20
  • 33
5
votes
1 answer

Using gulp with Laravel Elixir - disable tray icon messages?

When I use gulp with Laravel Elixir tasks in it using the command line on Windows, every time it runs messages are displayed in a tray icon. I have to click on the text-balloons to make gulp finish its tasks. I find this very annoying. What is…
Dylan
  • 9,129
  • 20
  • 96
  • 153
5
votes
3 answers

Laravel elixir and autoprefixer

So I saw that elixir doesn't automatically use autoprefixer. This is how my gulp file looks: var Elixir = require('laravel-elixir'); var autoprefixer = require('gulp-autoprefixer'); var gulp = require('gulp'); Elixir.config.sourcemaps =…
HaleyBuggs
  • 915
  • 3
  • 13
  • 29
5
votes
1 answer

Laravel Elixir: How to execute a task only in production mode?

I am using a bunch of "console.log" calls for debugging my JS application. However, I'd like to remove these automatically when sending the code to production. Using a traditional gulpfile, I would use the "gulp-strip-debug" plugin that will be only…
kant312
  • 1,114
  • 1
  • 15
  • 28
5
votes
1 answer

Running gulp tasks with laravel elixir doesnt version all js files

I have this gulpfile.js https://gist.github.com/kristapsveveris/c25ba60984d8f3602d68 When I run gulp task, the result is : (source: maxtraffic.com) rev-manifest.json contains : { "assets/js/all.js": "assets/js/all-d764f790.js", …
Kristapsv
  • 558
  • 5
  • 15
5
votes
1 answer

Laravel 5 Elixir takes too long to compile LESS

I'm currently experiancing a slow down in my development workflow, it is taking around 3-4s for my less to compile and then version, this is causing much annoyance. I would like to 'split' my watcher down so that it is only compiling the changed…
Jono20201
  • 3,215
  • 3
  • 20
  • 33
5
votes
3 answers

Laravel Elixir - Unable to use .version with css and multiple js files

I am having issues with Laravel Elixir .version('xxxxxx.js'). For some reason, it appears as though I cannot use .version with js files or in addition to .css or even have multiple versioned js files. elixir(function(mix) { /** * My Less …
Gravy
  • 12,264
  • 26
  • 124
  • 193
1 2
3
27 28