Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mchristie's avatar

Elixir manifest file not written

I had elixir working great running some minification and versioning of the files, but to deploy I had to change the public folder to public_html and now the manifest file isn't being written. I'm not sure why the public folder change would affect this, but it's the only thing I remember changing since it worked.

The combining and minification works fine, there's no errors, it just doesn't write the manifest file any more. Any ideas what I might have missed?

0 likes
6 replies
sitesense's avatar

Please show your gulpfile.js, I'm guessing the output directory is incorrectly set.

Example:

elixir(function(mix) {
    mix.less('app.less')
        .styles([
            'app.css',
            'main.css'
        ], null, 'public/css/')
        // format above is: ], 'output dir', 'source dir')
        .version('public/css/all.css');
});
sitesense's avatar
Level 19

Ok, was checking the source and noticed that the version command has a structure like this:

elixir.extend('version', function(src, buildDir) {

So we can pass the "build" directory like so:

elixir(function(mix) {
    mix.less('app.less')
        //.sass('main.scss')
        .styles([
            'app.css',
            'main.css'
        ], null, 'yoursource/css/')
        .version('yoursource/css/all.css', 'public_html');
});
2 likes
bashy's avatar

Public folder still gets set though for some parts?

sitesense's avatar

@bashy there do appear to be some defaults hard coded to /public.

At worst, you might end up with an extra "public" folder, but at least the build folder and related files will be in the right place.

mchristie's avatar

Thanks for the advice everyone, I solved it by adding a trailing slash to the build path similar to @sitesense suggested, i.e. 'public_html/' and it did it's thing in 'public_html/build'.

Please or to participate in this conversation.