My new Laravel project is missing webpack.mix.js
P粉431220279
P粉431220279 2023-12-26 16:05:31
0
1
424

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粉431220279
P粉431220279

reply all(1)
P粉328911308

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!