0.1.0 • Published 2 years ago

@charrue/vue3-bundler v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

说明

vue3-bundler提供了Vue3的单文件的打包功能,其构建产物为

es/
lib/
index.js
index.min.js
index.min.js.map
index.mjs
index.min.mjs
index.min.mjs.map

下载

# 依赖于Vue3
npm install vue @charrue/vue3-bundler -D

使用

  1. 设置npm scripts
{
  "scripts": {
    "build": "vue3-bundler"
  }
}
  1. 创建配置文件
// charrue.config.js
import { defineConfig } from "@charrue/vue3-bundler"

export default defineConfig({
  vueBuild: {
    input: "src/index.ts",
    outputDir: "dist",
    name: "Foo"
  }
})