You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enabling custom cli plugins to extend pluginOptions with defaults or prompt answers.
Extending pluginPluginOptions with the generator api.extendPackage will currently just replace instead off merge pluginOptions.
Current Config vue.config.js
{lintOnSave: true,pluginOptions: {someOption: "Some option that was present"}}
Extending pluginOptions generator.js
api.extendPackage({vue: {pluginOptions: {extraOption: "An extra option to be added"}}})
In the resulting config vue.config.js someOption was removed.
{lintOnSave: true,pluginOptions: {extraOption: "An extra option to be added"}}
What does the proposed API look like?
generator.js
api.extendPluginOptions((options)=>{options.extraOption="An extra option to be added "returnoptions})
Resulting config vue.config.js
{lintOnSave: true,pluginOptions: {someOption: "Some option that was present"extraOption: "An extra option to be added"}}
The text was updated successfully, but these errors were encountered:
wietseva
changed the title
Extending pluginOptions in generator
[feature request] Extending pluginOptions in generator
Feb 17, 2018
What problem does this feature solve?
Enabling custom cli plugins to extend pluginOptions with defaults or prompt answers.
Extending pluginPluginOptions with the generator
api.extendPackage
will currently just replace instead off merge pluginOptions.Current Config
vue.config.js
Extending pluginOptions
generator.js
In the resulting config
vue.config.js
someOption was removed.What does the proposed API look like?
generator.js
Resulting config
vue.config.js
The text was updated successfully, but these errors were encountered: