我是新来的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,但没有一个有帮助。
1条答案
按热度按时间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