I am new to Laravel and I have a problem, when I create a new project using the laravel new
or composer create-project laravel/laravel
command, there will be no webpack. The mix.js
file is created into my project.
After the creation is completed, a message is displayed Tag [laravel-assets].
There are no resources to publish.
I don't know how to solve it.
I am using Windows 10 and PHP version 8.1.11.
I tried running composer update
and tried some fixes for this problem: I don't have webpack.mix.js in my node_modules, but none of them helped.
P粉3289113082023-12-27 10:52:38
Maybe it's time to learn how to use Laravel vite
.
View the documentation on the Laravel website here
Alternatively, if you want to migrate to laravel mix, check here:
Also check this question:
No webpack. The mix.js file in the root directory of my laravel project