0.1.2 • Published 4 years ago

@aligov/build-adapter-plugin v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

adapter-plugin

用法

STEP1: 安装 plugin

tnpm i @aligov/build-adapter-plugin

STEP2: 配置 plugin

参数名说明必填类型默认值备注
entry入口文件非必填string'src/index.ts'
target输出文件名非必填string'build'
filename输出目标目录非必填string'index'
/* build.json */
plugins: [
  ['@aligov/build-adapter-plugin', {
    /* 入口文件*/
    entry:"src/index.ts",
    /* 输出文件名 */
    filename: 'index',
    /* 输出目标目录 */
     target: "build",
  }]
]

STEP3: npm run build