M
M
Mirzamorph2020-11-21 15:30:46
webpack
Mirzamorph, 2020-11-21 15:30:46

How to optimize laravel mix?

Good afternoon, I am developing a site on laravel and using tailwindcss.
I use laravel-mix to build the project, but the build takes a lot of time, even too much, about 45 seconds...
Tell me, how can I optimize this whole thing? Maybe I configured something wrong in webpack.mix.js?
I am attaching screenshots:

laravel.mix.js
5fb9079b36845740856819.png

npm run dev
5fb907f03b4fb154281229.png

npm run prod
5fb9082646ce6630463785.png

npm run watch also works for a long time, and because of the large amount of time, it starts rebuilding every second and does it for 15 seconds

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dexqel, 2021-10-01
@dexqel

After the first build of the project, disable the unchanged resources from mix.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question