-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Description
What problem does this feature solve?
we have a plugin. This plugin will generate some data into vue.config.js when it is invoked. we can't put this data into package.json, because it depend on some modules. for example:
const path = require('path')
module.exports = {
css: {
extract: true,
loaderOptions: {
stylus: {
'resolve url': true,
import: [path.resolve(__dirname, './src/theme')]
}
}
}
}
if we use api.render to generate vue.config.js, it can work. But if another plugin generate vue.config.js, the old vue.config.js will be overwrited.
What does the proposed API look like?
maybe like api.injectImports and api.injectRootOptions
Metadata
Metadata
Assignees
Labels
No labels