Skip to content

官方插件

主要项

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

@efox/plugin-vue-2

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

@efox/plugin-vue-3

  • 提供 vue 3 编译支持
js
const {defineConfig} = require('@efox/emp')
const vue = require('@efox/plugin-vue-3')
module.exports = defineConfig({
  plugins: [vue],
})
const {defineConfig} = require('@efox/emp')
const vue = require('@efox/plugin-vue-3')
module.exports = defineConfig({
  plugins: [vue],
})

@efox/emp-compile-swc

  • 提供 swc 编译支持
js
const {defineConfig} = require('@efox/emp')
const compile = require('@efox/emp-compile-swc')
module.exports = defineConfig({
  compile,
})
const {defineConfig} = require('@efox/emp')
const compile = require('@efox/emp-compile-swc')
module.exports = defineConfig({
  compile,
})

Released under the MIT License.