簡體   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