User1980's avatar

setPublicPath question on Laravel mix

Hello,

I am using laravel 6 with laravel mix 5.0.5

In webpack.mix.js

Right now, I have my app uploaded below the public_html in a folder called "Laravel" and all the files in the "public" folder inside the public_html folder.

My problem is that the mix-manifest.json is getting picked up from:

laravel/public/mix-manifest.json  where the app is installed

And not from:

public_html/mix-manifest.json

I have this at the moment, is it correct?

mix.setPublicPath('public_html/')  <--------???
    .js('resources/js/app.js', 'public/js')
    .js('resources/js/custom-script.js', 'public/front/assets/js/custom-script.js')
    .sass('resources/sass/app.scss', 'public/css')
    .styles(['resources/css/responsive.css'], 'public/css/responsive.css').version();

Thank you.

0 likes
0 replies

Please or to participate in this conversation.