search

Home  >  Q&A  >  body text

My new Laravel project is missing webpack.mix.js

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粉431220279P粉431220279423 days ago537

reply all(1)I'll reply

  • P粉328911308

    P粉3289113082023-12-27 10:52:38

    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

    reply
    0
  • Cancelreply