All Questions
Tagged with laravel-elixir javascript
53 questions
1
vote
0
answers
77
views
Laravel 5.3 Elixir Webpack - does not transpile Object.assign to EcmaScript 2015
I'm using Laravel 5.3 and utilizing the bootstrap app.js file provided by Laravel itself.
This is how my gulpfile.js looks like:
const elixir = require('laravel-elixir');
require("babel-polyfill");
...
1
vote
2
answers
377
views
How can I debug Uncaught Error: [$injector:modulerr] on a compiled js file?
I compiled my all my js, and css using Laravel Elixir via Gulp
While loading my site, I kept seeing this error on my console
all-04432621a2.js:1 is a compiled file.
Link
http://errors.angularjs....
0
votes
1
answer
3k
views
react js and existing Laravel project
I've searched internet and no where I've found a complete solution for what I'm trying to achieve. I'm trying to:
Add react related modules to existing Laravel project.
Use existing gulp file to make ...
1
vote
0
answers
25
views
laravel-elixir-image-optimize has limits when optimizing too many images at the same time
I was working with laravel 5.4 and has a plan to optimize the images of the project.
I tried use laravel-elixir-image-optimize, the laravel-elixir package to do the job. But in my case, I have around ...
0
votes
0
answers
276
views
Undo minify js after running gulp --production
My question is, I want to minify my js from my laravel project i'm using elixir, I know that if I run gulp --production it will minify my js.
What I want to know is if i decide i need to edit my js, ...
0
votes
1
answer
211
views
Strange error when updating an application to Vue2
After running vue-migration-helper and change all i need to update i'm getting this error bellow.
vue2.default.user is not a function
Console error:
Uncaught TypeError: _vue2.default.use is not a ...
0
votes
0
answers
70
views
Elixir sourcemaps wrong file app.css[sm] bug
With elixir, I compile my stylus files. But I have a problem with generating sourcemaps. In the chrome console, it gives me the right information for the basic files (eg, for reset css). But ...
1
vote
0
answers
104
views
How do you require('backbone') properly?
I'm trying to include Backbone into my existing Laravel Spark/Vuejs application which is becoming an SPA very quickly. Spark includes multiple libraries from NPM using code like:
window._ = require('...
3
votes
1
answer
406
views
Using multiple webpack methods on laravel elixir
I'm using Laravel 5.3 and Elixir:
"laravel-elixir": "^6.0.0-9",
"laravel-elixir-rollup-official": "^1.0.5",
"laravel-elixir-vue": "^0.1.4",
"laravel-elixir-webpack-official": "^1.0.2",
I'm using ...
3
votes
5
answers
16k
views
Global variable not working in NodeJS
I am trying to get global variables working in node.js, but it seems like I don't really understand the concept, even though my understanding matches the documentation.
Minimal example
My main.js ...
0
votes
1
answer
215
views
Gulp and elixir copy folders and minify them
Currently in our gulpfile.js we have every single JS file being .scripts() 'ed.
We want to transfer from each single file, to a more logical one. Using something like a foreach loop that loops ...
2
votes
1
answer
2k
views
Stop Gulp Removing Unused Javascript Functions
I am using Gulp via a Laravel project and I have javascript functions that I keep in one file that I then reference from the template when the page loads.
The issue is Gulp removes unused functions ...
0
votes
1
answer
763
views
How to require tether with webpack?
I have a webpack application I'm using with laravel elixir. In this application I have a bootstrap.js file for initializing all of my libraries. Here it is:
window._ = require('lodash');
/**
* We'...
0
votes
1
answer
76
views
Laravel elixir combine some file, but minify just some of them
Iv've got three files: a.min.js, b.min.js and c.js
I would like to minify c.js, and then combine a + b + c into a unique file using laravel elixir. Is it possible? Now I'm using this script:
elixir(...
2
votes
1
answer
1k
views
Cannot get vue-router to work with webpack
I'm trying to get vue-router to work without success and it got me quite angry after a while since i don't see any issue.
I'm using webpack via Elixir in Laravel, which has gulpfile like this:
const ...