0.1.0 • Published 2 years ago

d5c-code v0.1.0

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

d5c-code

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

笔记

package.json

用法:vue-cli-service build options

参数选项:

  --mode        指定环境模式 (默认值:production)
  --dest        指定输出目录 (默认值:dist) 
  --target      app | lib | wc | wc-async (默认值:app) TODO 查找区别
  --name        库或 Web Components 模式下的名字 (默认值:package.json 中的 "name" 字段或入口文件名)

构建一个库会输出:

  • lib/vue-code-viewer.common.js:一个给打包器用的 CommonJS 包 。
  • lib/vue-code-viewer.umd.js:一个直接给浏览器或 AMD loader 使用的 UMD 包。
  • lib/vue-code-viewer.umd.min.js:压缩后的 UMD 构建版本。
  • lib/vue-code-viewer.css:提取出来的 CSS 文件。