E
E
Eugene2020-11-05 15:01:43
Laravel
Eugene, 2020-11-05 15:01:43

How to change folder where Laravel Mix uploads?

By default, the assembly happens in the public folder .
Tell me how to change it to public_html .
I change the settings in webpack.mix.js, but a subfolder is created inside public: /public/_html/

mix.js('resources/source/app.js', 'public_html/assets/app.js');


If I specify:
mix.js('resources/source/app.js', '/public_html/assets/app.js');

Created: /public/public_html/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2020-11-05
@delphinpro

I guess you need to change the output option in the webpack config https://laravel-mix.com/docs/5.0/quick-webpack-con...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question