martijnvreeken martijnvreeken
0

Ziggy trough webpack

Hi, I'm not an experienced JS dev. I know my way around the basics. We use TightenCo Ziggy on a project with a lot or named routes. This results in @rout...
Mix
0
10
Sirik Sirik
1

amCharts4 with Laravel 5 and Webpack install

My app.js includes import * as am4core from "@amcharts/amcharts4/core"; import * as am4charts from "@amcharts/amcharts4/charts"; import a...
Mix
1
68
compasscreative compasscreative
0

Mix error handling

Does Laravel Mix offer error handling? I find that when I’m running `npm run wat that every time I save with invalid js or scss mix will crash. I’d rather...
Mix
0
10
Notdavis Notdavis
8

__CONSTRUCT passed as Method in $request->method(); ?

I have middleware which logs data for me. In the kernel.php it's the last index of the protected $middleware array. It's been running now for a year+, without issue,...
Mix
8
94
jonstavis jonstavis
24

Using Elixir versioning with Git

Can anyone recommend a best practice for committing versioned Elixir build files (each new file with a new name) to a git repository? for example publ...
Mix
24
214
Ruffles Ruffles
5

How do you deal with git merge/rebase and public assets?

Hello, as the title says, how do you deal with public assets and git merges/rebases when you know that after the merge, you'll run gulp and overwrite th...
Mix
5
27
Dinesh_dev Dinesh_dev
12

how to get back original file code after running production command in laravel mix

Hi, I added several file js and css file webpack.mix.js file and then run npm run production. after some error occur in js file, so i want...
Mix
12
132
christiant christiant
3

jQuery is not loading into project

Hi, I have tried to get jquery working but I am failing. I took the basic laravel installation that includes already bootstrap for the User/Login and just to be sure instal...
Mix
3
50
JakariaBlaine JakariaBlaine
6

How to turn off "build sucess" notifications from Laravel Mix?

I am using Laravel 5.4. I want to turn off the notifications from Laravel Mix. How can I do that?...
Mix
6
792
ibrahem ibrahem
8

Module not found: Error: Can't resolve 'fs'

hi, when run gulp get error not found fs module // depend fs let dir = require('node-dir'); //or let fs = require('fs'); dir.path(__dirname, function(err,...
Mix
8
980
michaelnguyen547 michaelnguyen547
1

devDependencies vs dependencies

I am using Laravel Mix v4. I am having a hard time to understand which packages should be in devDependencies vs dependencies (in package.json). "dev...
Mix
1
34
naveensnayak naveensnayak
1

Laravel Mix with caffeinated/modules

I am using caffeinated/modules (https://github.com/caffeinated/modules) and...
Mix
1
29
Erik Erik
2

Laravel Mix failing to compile in production on dynamic imports

Hello, I'm having issues compiling using the production command with dynamic imports with Vuejs. <template> <component v-if="component...
Mix
2
47
ChrisxHart ChrisxHart
2

npm run commands error

Created a new laravel project, ran 'npm install', but 'npm run dev' won't run correctly. I'm on windows 7, it worked fine on my first project but I can't get it to work on...
Mix
2
62
Kareimovich Kareimovich
5

Laravel vue validation

Hi everyone I have My validator here and in my form when I let the name field empty I don't get required error $validator = Validator::make($req...
Mix
5
74
hjortur17 hjortur17
3

TailwindCSS

Hi, I'm trying to use TailwindCSS for my project but I'm having trouble getting​ Laravel Mix to work. My error message is like this: ERROR Failed to comp...
Mix
3
103
Hectix Hectix
6

npm run watch not actually watching files

mix.scripts([ 'node_modules/jquery/dist/jquery.js', 'resources/js/article.js'], 'public/js/article.js'); When I change resources/js/a...
Mix
6
107
danyal14 danyal14
0

Webpack Environment Variables

I am trying to access MIX_ENV_VAR for in my .js file with mix build, that's not happening. // config.js var uapi_base_url = 'http://localhost:8101/v1'; var c...
Mix
0
40
evahenry evahenry
1

Doctype Declaration Issue

Hey Folks! Actually, I am optimizing my website. Some of the tools are showing that this page -...
Mix
1
71
Hectix Hectix
2

Node modules plugin not defined

Hi guys, when I mix these two scripts, one is feather icons library and article.js is my custom script: mix.js(['node_modules/feather-icons/dist/feather.js',...
Mix
2
53
timgavin timgavin
2

Combining multiple Less files

What's the proper way to combine multiple Less files into one? The following doesn't work... mix.less([ 'resources/assets/less/theme/core.less', 'resou...
Mix
2
69
swapna swapna
0

"push" in Angualr

i am getting result as disabled: false end_date: "07-01-2018 00:00:00" end_date_ts: 1515283200 selected: false start_date: "01-01-2018 00:00:00" start_d...
Mix
0
32
Jaikangam Jaikangam
1

npm run watch stop working while npm run dev work, how i can make it work it again npm run watch

hi developer, i am using laravel mix, i have being using npm run watch it is working fine. after i install one package its stop working while npm run dev is working fine. W...
Mix
1
57
gjm gjm
1

Laravel mix upgrade best-practices

Hi. The Laravel upgrade guide doesn't mention upgrading package.json versions as it does for some composer.json components, namely la...
Mix
1
79
mijgame mijgame
0

BrowserSync ignore not working

Hello, Currently, I'm trying to get BrowserSync to ignore a certain file. Specifically this file: resources/ts/graphql/fragmentTypes.json...
Mix
0
49
kodeninja kodeninja
7

Exception when running "npm run watch-poll" after upgrading to 5.7

Hi, I've just upgraded from Laravel 5.6 to 5.7: followed the upgrade docs and implemented all changes using the GitHub comparison tool. I'm not using Vue but...
Mix
7
135
JohnRivs JohnRivs
0

Disable/enable certain WebPack plugin before/after compilation

I'm using PurceCSS on certain assets but I don't want it to run for others. Is there a way to disable it after certain assets or enable it before certain assets? Can...
Mix
0
48
thebigk thebigk
1

MIX Cache Bursting Vs. Asset URL Directive in Config

I'm on Laravel 5.7 and have decided to use the asset_url configuration in config/app.php. However, I also need to make use of the MIX's cache bust...
Mix
1
67
thebigk thebigk
3

Workbox and Push Notification Integration

I'm currently building a progressive web app with Workbox. It's got almost everything working; except that I can't figure out how to integrate push notification. Her...
Mix
3
102
Slava.Basenko Slava.Basenko
12

Laravel-Mix sourcemap files not genarates

Hi every one! This is my config file const { mix } = require('laravel-mix'); const webpack = require('webpack'); const ImageminPlugin = require('imagemin-web...
Mix
12
413
leonidas leonidas
5

popper.js.map - Failed to load resource: the server responded with a status of 404 (Not Found)

After starting to have a look into Laravel Mix, I issued the commands "npm install && npm run dev". I have done nothing el...
Mix
5
71
Dinesh_dev Dinesh_dev
2

Uncaught ReferenceError: require is not defined laravel 5.4.36

Uncaught ReferenceError: require is not defined How to fix this? my node version is v10.15.0 my npm version is 6.4.1 I tried to fix npm broken packages by fix co...
Mix
2
76
allw allw
1

How to add different variant shades to bootstrap vue without having to manually type out every single one?

I am looking for a way to add variants and shades of these variants Bootstrap Vue without having to explicitly type out every single one... Currently I am just using...
Mix
1
295
penkoad penkoad
2

Laravel mix minify but copy un-minified version

HI, What I am trying to achieve is minifying a js file and copy the result to the public directory I tried mix.minify('resources/assets/js/dropzone.js...
Mix
2
66
kgp43 kgp43
1

How to "import" js lib the correct way?

Hi, I would like to use the following lib (could be anything really), but i'm not sure where to go from here. I would like to learn the "correct" method to...
Mix
1
34
Create a New Discussion Button