插件

主要项

GCP v2 plugin 结合 webpack chain 提供对 webpack自定义配置,详细类型 [点击了解]

官方插件

@gcbp/gcp-cli-plugin-vue2

  • 提供 vue 2 编译支持
const {defineConfig} = require('@gcbp/gcp-cli')
const vue = require('@gcbp/gcp-cli-plugin-vue2')
module.exports = defineConfig({
  plugins: [vue],
})

@gcbp/gcp-cli-plugin-react

  • 提供 react 编译支持
const {defineConfig} = require('@gcbp/gcp-cli')
const babelReact = require('@gcbp/gcp-cli-plugin-react')
module.exports = defineConfig({
  plugins: [babelReact],
})