Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Webpack 2: No config found when config is a function  #47

@giannif

Description

@giannif

Webpack 2 supports exporting a default function as the webpack config.

export default env => {
    // return env-specific configuration
}

I'm using this for the reasons in this post.

babel-plugin-webpack-alias will need to check for a function, invoke it (potentially with the value env), to get the config object, before it checks if config.resolve exists

Otherwise you get the 'The resolved config file doesn\'t contain a resolve configuration' error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions