hakhsin hakhsin
2

How can I store all scss file that I import to js/vue files into a css file?

Hi, I want to all scss files that I import to may vue files store in a css file. How can I do it? I am using laravel v6. My laravel resources app structure is...
Mix
2
811
hakhsin hakhsin
0

How can I import all .scss files automatically?

Hi, My laravel resources app structure is like this: resources vuesin components Tree _tree.scss Tree.vue...
Mix
0
107
giviz giviz
7

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
7
2046
shylor shylor
0

Webpack Javascript File with Sass Notes in it?

I've done several searches on Google and can't find this explained. I'm just looking for understand on what is happening? Maybe I'm doing something wrong or maybe this is n...
Mix
0
94
pedrosavi pedrosavi
2

Package working when I run node app.js, but not working when I run laravel mix

Hi, I tested a package in a simple application node and run normally. But when I run the same package in laravel mix I get this error WARNING in ./nod...
Mix
2
1225
Skoyah Skoyah
1

Mix with tailwindCSS and Purgecss

Using mix.sass().tailwind(); Now I would like to use purgecss. How can I achieve that?...
Mix
1
1217
bigblueboss bigblueboss
5

npm run watch issues

cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--...
Mix
5
1516
wing5wong wing5wong
1

Jigsaw / Mix / Fontawesome

Having some trouble getting the fonts folder to be generated on a site im using built with Jigsaw. Unfortunately i just cant seem to figure out the fonts folder - i am unde...
Mix
1
1221
bohowe bohowe
2

Noob in css, please help

I'm a noob in CSS and I want to override a variable in scss. To be more specific a variable in bootstrap scss. How can I do that. I added the following in my variable...
Mix
2
1195
stevenh stevenh
1

Can't get Vuetify 2 to work with Laravel

Hi, I haven't been able to get the new version of Vuetify (which has components à-la-carte) to work with Laravel. The problem is related to not using Vue CLI...
Mix
1
1583
shammadahmed shammadahmed
20

CSS & JS Files Not Being Loaded

Everything works fine if I use a CDN. But when I try to use the elixir() function, it gets output the correct file (...
Mix
20
1297
twg_ twg_
2

Mix specific files based on flag

I was wondering if I could use a single webpack.mix.js file to mix all of my files for each sub section of my website. I have all fo the files living inside a...
Mix
2
701
murilo murilo
2

NPM run - is not rendering a JS file properly

Hello GUYS , I have been all day trying with many ways to solve a problem . I have a project that I created inside XAMP Host ( in my machine , windows ) , then I started wo...
Mix
2
1185
nasirkhan nasirkhan
1

Tabler theme with Laravel Mix

I want to use the theme Tabler (https://tabler.io) in one of my existing projects. I checked thei...
Mix
1
1194
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
1166
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
1260
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
1196
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
117
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
1227
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
702
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
2101
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
1141
denorm denorm
5

Laravel Mix Dynamic Imports

Looks like dynamic imports will finally work with Mix: h...
Mix
5
1534
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
643
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
720
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
877
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
684
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
1250
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
677
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
717
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
646
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
66
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
1068
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
67
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
739
Create a New Discussion Button