eugenevdm eugenevdm
3

Can one use both Tailwind and Bootstrap 4 at the same time?

I am trying to ease myself into Tailwind. My Laravel UI is currently Vuejs which seems to use Bootstrap 4 CSS as well. I was h...
Mix
3
1450
Snackpack Snackpack
4

Font URLs are not respecting the public path when compiling Sass

I use an public/assets folder for all my assets, but when I'm compiling my Sass files, the @font-face URLs are not reflecting my configured folder stru...
Mix
4
107
gymdone gymdone
1

TypeError: text.forEach is not a function

This just started happening ... ~/STGdev/lvvn $ npm run watch > @ watch /home/gymdo/STGdev/lvvn > npm run development -- --watch > @ development...
Mix
1
120
SolomonRei SolomonRei
0

React issue (css-loader)

Goodnight! I've never implemented react in laravel. I've got any issues and don't know how resolve them. App.js require('./bootstrap'); import './App....
Mix
0
37
Mikegk Mikegk
3

custom.js to be required or chained on mix?

Hello, I just want to include a javascript file (which also contains jquery) to the compile list of mix. For my understanding there are at least two ways for that....
Mix
3
71
virgiltu virgiltu
0

Run Mix on a variable?

Maybe a bit misleading but here is what I got. I just changed to tailwindcss and that seems to require laravel mix purgecss. My website is a website builder, once...
Mix
0
43
joshsalway joshsalway
0

Laravel Mix (gulp) running really slow?

npm run prod is taking 1.5 minutes to run on server and npm run dev isn't working as expected... What would you do to improve the speed? This is a laravel 5.2.45 project......
Mix
0
44
Aron-Spiess Aron-Spiess
2

Where do I add custom.css in webpack?

I've created a tailwind.css where in my web pack do I add the css file? mix.js("resources/js/app.js", "public/js/app.js") .sas...
Mix
2
93
MB MB
4

mix.version() does not make the files

Hi, I have this code in webpack.mix.js mix.js('resources/js/app.js', 'public/js') .sass('resources/sass/app.scss', 'public/css') .version();...
cajogos replied
Solved
Mix
4
155
pszemo pszemo
0

laravel mix - problem with creating path to fonts

Good Morning, I'm trying to import local fonts to my project. Almost everything gone correct except.... path to fonts at app.css At _fonts.scss importing fonts from...
Mix
0
42
Čamo Čamo
6

Laravel 5.8 how to include node_modules

I need to include tempusdominus datetimepicker to my Laravel 5.8 project but I am no able to load the scipts and styles correctly. According documentation I tried to...
chr15k replied
Solved
Mix
6
189
Rahul Rahul
5

After minifying my JS is not working !

Hi, When i run my laravel elixir gulp --production it minifying my js files with webpack but why it's not working after that :( any idea ?...
Tray2 replied
Solved
Mix
5
597
Troj Troj
3

Laravel vue and tailwindui compile prod fails

When i run 'npm run dev' or 'npm run watch' everything works as supposed to. But when i run 'npm run prod', my site get's all messed up. It actually not fails to compile, b...
Mix
3
175
AccAdmin AccAdmin
1

Mix Compile sizes Vs Vue-CLI

I've migrated a project over from Vue-CLI into Mix and everything has gone smoothly with the exception of the compiled sizes of both the app.js and app.css files. As...
Mix
1
138
andrewcloss andrewcloss
0

Importing JS class from a blade

Hey folks, No matter what I do I can't call a class located in a JavaScript file from my blade file. I've simplified this as much as possible to a function an...
Mix
0
67
sarthak94 sarthak94
0

Laravel Mix makes file with wrong name

I was using laravel mix.js for minifying a js file like this: mix.js("public/js/unminified/*.js", "public/js/minified/*something/"); Now w...
Mix
0
74
andersb andersb
0

Require packages like AlpineJS and MapBox GL JS as dependency or CDN?

We are using quite a lot of 3rd party packages like AlpineJS and MapBo...
Mix
0
80
erikhamrin erikhamrin
2

Laravel Mix - Images with same filename in different folders are compiled to single asset

I have a problem with assets used in Vue components and compiling them with webpack/Laravel mix in my application. To make sure I hadn't screwed anything up, I repro...
Mix
2
175
Fady Fady
3

Mix with vuetify

I am trying to use VuetifyLoaderPlugin with Laravel mix and I keep getting the following error on edge browser: "SCRIPT1028: Expected identifier, string or numb...
Niush replied
Solved
Mix
3
1380
graemenewable graemenewable
1

Make npm run watch only compile specific assets

In my webpack.mix.js I have 2 separate Sass and JS bundles as stated below: //Public mix.js('resources/js/app.js', 'public/js') .sass('resou...
Mix
1
108
JoshMountain JoshMountain
31

[5.4] npm run watch not working

Using 5.4 and mix, when I run npm run watch it compiles once and looks like it is waiting for changes, but when I make changes to any of my asset files it does...
Mix
31
13003
eugenevdm eugenevdm
0

Is there a way to exclude an extra `node_modules` directory from Mix?

I am using a stock npm run watch command in the root directory of my project. Further down the directory hierarchy in resources/js I have i...
Mix
0
71
mazedul mazedul
21

The Mix manifest does not exist when using orchestral/testbench

Creating a custom Laravel package using the orchestral/testbench package that helps package developer to help with PHPUnit test. So, my package on a different place and not...
Mix
21
2842
FareedR FareedR
14

CSS Overlap

How can I resolve css overlap ? any tricks ?...
Mix
14
1333
Aronaman Aronaman
2

css and js mix

which one prefers more? clone my CSS and js file from cdn or install via npm and compile in my laravel mix? <script src="https://cdnjs.cloudf...
Mix
2
212
sjess sjess
5

npm run watch in infinite loop (Laravel 5.4)

Hi there, I have following error when using npm run watch on latest Laravel 5.4: 95% emittingError: EBUSY: resource busy or locked, open...
Mix
5
1450
Bartas139 Bartas139
1

Fontawesome - wrong path

Hi, can someone help me with including font awesome. Which is loading from wrong path? Font works well in views which are located in resources/views, it loads...
Mix
1
157
Aronaman Aronaman
5

compile css and js

hey everybody, for my front end I download template adds I copy CSS and js code to my public folder. then I access it as {{asset()}}. my question is wha...
Mix
5
234
sas_sam sas_sam
0

SVG sprite issue with Laravel Mix

HI All, I try to use Laravel Mix (v5.0.4) and extend it with SVG sprite loader (svg-sprite-loader) to generate SVG sprite. Unfortunately, it does NOTHING in regards...
Mix
0
80
mrcsmcln mrcsmcln
15

Laravel Valet not playing nice with BrowserSync

The title pretty much says it all. I've configured my valet park'd my ~/Sites directory and tried using mix.browserSync({proxy: 'site.dev'})...
Mix
15
2115
quickliketurtle quickliketurtle
5

How do you include files from node_modules in elixir?

How do you include files from node_modules in elixir? Copy file to assets folder first? Like scss example. Reference file directly in node_modules dir...
Mix
5
607
rayzor rayzor
7

font-weight-bolder not working

I'm using bootstrap in a laravel project and I'm centering text in a circle. I've gotten the text in the circle, but wanted it "bold". I tried doing font-weight:...
Mix
7
242
randm randm
0

How to compile boostrap and jQuery using laravel-mix?

I am trying to use Laravel-mix to compile bootstrap & popper into a single bootstrap-standalone.js file. Additionally, jQuery along with js-cookie into a...
Mix
0
102
randm randm
4

Can I bundle font-awesome css code with my css code using laravel-mix

font-awesome is used by every page of my application. How can I bundle my app.css along with font-awesome/css/all.min.css? Will I have to download font-awesome packa...
Mix
4
240
somenet77 somenet77
1

It is possible to extract vendor from multiple files ?

Is it possible to extract the vendor from multiple files? I have multiple app.js files for each module and I want to extract the vendor like this. mix.js('re...
Mix
1
162
Create a New Discussion Button