Skip to content

Need to check that Elixir is ready before merging webpack config #47

@AbstractEverything

Description

@AbstractEverything

When merging some additional loaders with Elixir.webpack.mergeConfig() in my gulpfile.js I encountered an error: "TypeError: Cannot read property 'mergeConfig' of undefined"

I was able to solve this by checking that Elixir was ready before merging the additional config:

Elixir.ready(function() {
    Elixir.webpack.mergeConfig({
        // ...
    });
});

Perhaps this should be noted in the readme?

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