Skip to content

Merge file config and inline options #5644

Open
@myin142

Description

@myin142

What problem does this feature solve?

Currently if you have inline options set in the Service and a vue config file, then inline options will be completely ignored. That is inconvenient if you want to programmatically set options but also allow the user to override these.

For example the NX Plugin for Vue.
They are setting inline options programmatically when building the application. But if I for example want to set the publicPath using a vue config file, then the normal build options are not used anymore.

What does the proposed API look like?

Is it not possible to just extend the inline options in the Service.js file? I have not looked at other classes but I do not see an usage for inline options if it is completely ignored if any other config exists.

resolved = {
    ...(this.inlineOptions || {}),
    ...resolved,
};

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