@charrue/vue3-bundler
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

说明

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"
  }
})

Readme

Keywords

none

Package Sidebar

Install

npm i @charrue/vue3-bundler

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

4.23 MB

Total Files

8

Last publish

Collaborators

  • charrue