Level 9
Ok, so I have found out that there's a function .combine that works.
https://mattstauffer.co/blog/introducing-laravel-mix-new-in-laravel-5-4
So does that suggest that the official laravel docs need updating?
4 likes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm migrating a 5.3 app to 5.4. When running npm run dev, I get
/home/michael/Code/oispark/webpack.mix.js:36
.styles([
^
TypeError: mix.styles is not a function
This is my css section:
mix.styles([
'resources/assets/css/font-awesome.css',
'resources/assets/css/styles.css',
'resources/assets/css/custom.css',
'resources/assets/css/responsive.css',
], 'public/css/styles.css');
There's nothing in the docs that say you have to do anything else: https://laravel.com/docs/5.4/mix#plain-css
Does anyone have any ideas?
Please or to participate in this conversation.