我的新Laravel项目中缺少webpack.mix.js

xjreopfe  于 2022-12-29  发布在  Webpack
关注(0)|答案(1)|浏览(202)

我是新来的Laravel,我遇到了一个问题,当我创建一个新的项目,无论是与laravel new or the composer create-project laravel/laravel commands, there will be no webpack.mix.js file created into my project. When the creation is finished there is info that没有可发布的资源标签[laravel-assets].'.我不知道如何解决它.
我正在使用Windows 10与PHP 8.1.11版本.
我已经尝试运行composer update,并尝试修复此问题:There is no webpack.mix.js in my node_modules,但没有一个有帮助。

whlutmcx

whlutmcx1#

也许是时候学习如何使用Laravel vite了。
Check the documentation on the Laravel website here
或者,如果您想迁移到laravel mix,请点击此处:
https://github.com/laravel/vite-plugin/blob/main/UPGRADE.md#migrating-from-vite-to-laravel-mix
也检查这个问题:
there is no webpack.mix.js file in my laravel project root

相关问题