Missing dist folder

Hello,

First of all thank you for this great piece of work Sage is.
The problem I have is after running npm/yarn build command, assets are compiled into ‘public’ folder, however there’s no ‘dist’ where I assume all views should go. Obviously then the theme is all blank on production server. Laravel Mix doesn’t throw any errors.

Is there anything I’m missing here?

Thanks,
Lukasz

Hi @lukaszformela,

Welcome to Roots community!

Can you copy your webpack.mix.js file here, please?

Seems you have you changed mix.setPublicPath value.

Cheers.

Note: You added a “sage9” tag to your post, but you probably mean Sage 10, as this is the release in master branch.

Sage 10 uses a public folder instead of dist.

Related question:
https://discourse.roots.io/t/missing-dist-folder-after-running-build/20918?u=strarsis

This topic was automatically closed after 42 days. New replies are no longer allowed.