繁体   English   中英

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

[英]webpack.mix.js is missing from my new Laravel projects

我是 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 commands, there will be no webpack.mix.js file created into my project. When the creation is finished there is info that 。`。 我不知道如何解决它。

我正在使用 Windows 10 和 PHP 8.1.11 版本。

我尝试运行composer update并尝试对这个问题做一些修复: 我的 node_modules 中没有 webpack.mix.js ,但它们都没有帮助。

也许是时候学习如何使用Laravel vite

在此处查看 Laravel 网站上的文档

或者,如果你想迁移到 laravel mix,请在此处查看:

https://github.com/laravel/vite-plugin/blob/main/UPGRADE.md#migrating-from-vite-to-laravel-mix

也检查这个问题:

我的 laravel 项目根目录下没有 webpack.mix.js 文件

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM