vue-cli-plugin-buefy
Version:
Vue CLI 3.x plugin to add vue-buefy to your Vue Project
14 lines (12 loc) • 346 B
JavaScript
const Generator = require('@vue/cli/lib/Generator')
module.exports = async function generateWithPlugin(plugin, pkg) {
process.env.VUE_CLI_SKIP_WRITE = true
const generator = new Generator('/', {
plugins: [].concat(plugin)
})
await generator.generate()
return {
pkg: generator.pkg,
files: generator.files
}
}