Skip to content

Custom output filename issue #50

@exequeryphil

Description

@exequeryphil

I'm trying to dump Webpack output to a custom-named file. My Gulpfile has the following lines:

mix.webpack(
    './assets/js',
    'dist/assets/js/custom.js'
);

Surprisingly, this creates an extra folder in my dist folder:

dist/assets/js/custom.js/custom.js

Alternatively, I tried this just to see what happens:

mix.webpack(
    './assets/js',
    'dist/assets/js'
);

The result is like:

dist/assets/js/b40893aeee1432abcd.js

What is going wrong here? I just want dist/assets/js/custom.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions