dexter_siah dexter_siah
1

Laravel 5.8 Mix: how to compile all .scss files in the folder without specifying each file

Hi everyone, I'm trying to import some external .scss files onto my project but there are too many to list. Is there a way to compile all the .scss files in the folder with...
Mix
1
48
godbout godbout
8

npm run prod, commits, and forge

i don't get how the workflow is supposed to be. i develop on my local machine with npm run watch. my package.json and package-lock.json...
Mix
8
171
jonjonjon jonjonjon
3

Laravel Mix - expose function to be used in browser

I have a typescript file that I would like to build with mix, and then use it in another page as a javascript library. i.e: <script type="module"...
Mix
3
83
Tharindu Tharindu
0

Prerender SPA plugin in Laravel Mix

Does anyone know how to set up prerender SPA plugin with laravel mix ? Thanks...
Mix
0
33
thebigk thebigk
2

Workbox and Laravel Mix - Super Confusing!

I'm trying to build a PWA for my app; and have spent almost 48 hours trying to figure out how to make use of Workbox with Laravel Mix. What's ironical is that Google says W...
Mix
2
83
Albyzai Albyzai
2

React component specific styling

Hey, I am using React with Laravel and I am looking for a way to write component specific scss. What i am envisioning is the following project structure:...
Mix
2
199
Manrix Manrix
5

Vuetify sass compile error with laravel mix

Hi. I'm using vuetify with laravel mix. When i compile it i get this error: ERROR in ./node_modules/vuetify/src/styles/main.sass (./node_modules/css-loader!....
Mix
5
467
cboxdk cboxdk
3

Babel issue running npm run dev after upgrade to Mix

I have an old Laravel App which I updated to Laravel 5.8. I removed all old resources files, package-lock.json, yarn.lock and gulp files. I then copied in the default packa...
Mix
3
113
denorm denorm
5

Laravel Mix Dynamic Imports

Looks like dynamic imports will finally work with Mix: h...
Mix
5
485
Frankobingen Frankobingen
1

Can I use mix to run different sub folders where each folder has a webpack.mix.js?

Hey everyone, I'm currently working on a project where I want to have multiple "themes" within my project. I have a content structure like roo...
Mix
1
60
Ara Ara
5

Laravel Mix not found

Hey guys, So I am trying to run yarn run dev but I keep getting this error: > @ development /home/vagrant/code/kin-ball-v4 > cross-...
Mix
5
128
skeith22 skeith22
4

Mix v4 outputs blank app.css file

I have a fresh installation of Laravel 5.8 node v10.15.3 npm v6.10.1 I have this webpack.mix.js config const mix = require('l...
Mix
4
148
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
484
AdrianWix AdrianWix
7

Laravel Mix Extremly Slow

I am using Laravel 5.8. It takes around 60-90 seconds to compile after a change. It's impossible to work like that. In a react project (create-react-app) it usually takes n...
Mix
7
239
sheph sheph
3

Laravel mix/webpack with scripts on specific pages?

I've maintained a project where we did a @stack('scripts') in the main blade layout, and on specific blades pages we would push any page...
Mix
3
121
Sirik Sirik
2

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
2
427
tombenevides tombenevides
2

Compiling Assets on Production

How can I run npm run prod (or dev) while using the system without errors? When I do this while I'm using the system, I got this error:...
Mix
2
109
yabasha yabasha
0

build npmjs plugin using laravel-mix

Hello, I have developed nodejs module (simple one): exports.printMsg = function() { console.log("jQuery version " + $().jquery); console...
Mix
0
43
XSkinner XSkinner
6

npm run prod still logging console.log

Hi. I Have been reading for a while and It is supposed console.log statements to be stripped out when running npm run production... however, I still get my console l...
Mix
6
1146
Cinta Cinta
0

Merge coffeescript files to one?

I'm trying to complie a bunch of .coffeescript files from a plugin into to one .js file. but the .coffee() function in mix does not seem to accept multiple lines and the .s...
Mix
0
55
successdav successdav
9

Npm run watch displays error after compiling then stops watching

It compiles up untill 95 percent then displays DONE Compiled successfully in 32854ms 3:57:42 AM Asset Size Chun...
Mix
9
303
clat23 clat23
8

npm install, npm audit fix errors out

It all started with trying to install the videojs-youtube package (https://g...
Mix
8
378
papa papa
7

Laravel Mix with Vue-loader

I try to use vue-loader with webpack.mix.js without success My configuration const mix = require('laravel-mix'); const VueLoaderPlugin = require('vue-...
Mix
7
351
connecteev connecteev
6

Webpack /Laravel Mix scopes get messed up - how to fix?

I have a NEW app with laravel and vue that I'm trying to get working. Thing is, webpack (laravel mix) messes up the scope in the resulting compiled app.js file. app....
Mix
6
194
probably_joe probably_joe
7

Mix cannot find dependencies for app.js and app.scss

I am trying to follow along with the "Laravel Mix and the Front-end" episode. I had a few hiccups with some modules, but I think that I have resolved those. Now...
Mix
7
1337
Torch Torch
29

Mix is compiling to empty js file

Laravel Mix Version: 4.0.7 Node Version 10.15.1 NPM Version 6.9.0 OS: Win 10 + Homestead Hello, I have a problem on windows (homestead virtual, winnfsd plugin...
Mix
29
644
psychosocial227 psychosocial227
2

Laravel mix multiple file

I want to keep the app.scss to keep pointing to the app.css my problem is how do i add another path. Example I created a blog.scss file and i want it to point to blog.css ....
Mix
2
165
gidaban79 gidaban79
4

Moment package add some javascript in my css file

Hello guys "moment": "^2.24.0", "vue": "^2.6.10", "laravel-mix": "^4.0.16"...
Mix
4
274
giviz giviz
6

ReferenceError: $ is not defined using Mix

Hi guys, I've spend a couple of hours trying to figure out why I get this error when I'm trying to use jQuery: Uncaught ReferenceError: $ is not defin...
Mix
6
2971
ryssbowh ryssbowh
0

mix and module architecture

Hi all, Looking for advices for a problem I've been having for quite some time now, hope somebody can share some lights on this : I'm trying to build an appli...
Mix
0
64
joaorbrandao joaorbrandao
1

Fail to build amcharts 4 using laravel-mix

Hi, I'm trying to import Amcharts 4 into my project but i got the following problem in my terminal. I followed the installation that is in the amcharts....
Mix
1
258
bsholdice bsholdice
1

laravel-mix & blade syntax needed to use JS package

I want to use https://github.com/fnando/sparkline in a new 5.8 project. I kept g...
Mix
1
159
connecteev connecteev
1

Configuring postcss-uncss for Laravel Mix

I am trying to remove unused css rules from one sass file. Research led me to postcss-uncss as the best option for removing unused css if you do not use server-side...
Mix
1
251
gewode gewode
3

In Laravel mix, how to configure to process css font path in specific directory

Inside my Laravel project, in webpack.mix.js, I have used this: mix.js('resources/themes/tailwind/js/app.js', 'public/themes/tailwind/js') ....
Mix
3
242
Moenchfracht Moenchfracht
4

Mix and mdbootstrap

Hi. I try to add mdbootstrap to my laravel project using laravel mix. Can someone show me how to do it please? I also opened up a support case at...
Mix
4
212
Create a New Discussion Button