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

0.0.6 • Public • Published

说明

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

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

下载

npm install @charrue/vue2-bundler -D

使用

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

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.61latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.61
0.0.51

Package Sidebar

Install

npm i @charrue/vue2-bundler

Weekly Downloads

2

Version

0.0.6

License

MIT

Unpacked Size

10.1 kB

Total Files

7

Last publish

Collaborators

  • charrue