vue-component-builder
build vue component
Last updated 4 months ago by qiu8310 .
ISC · Original npm · Tarball · package.json
$ cnpm install vue-component-builder 
SYNC missed versions from official npm registry.

vue-component-builder

使用

在项目根目录添加配置文件 vue-component.config.js


module.exports = {
  outDir: 'dist',
  external: (id, parentId, isResolved) => {
    return false
  },
  components: [
    { name: 'swipe', entry: 'path/to/swipe.js' },
    { name: 'tab', entry: 'path/to/tab.js' },
    // ...
  ],
  // 是否在 js 中 require 对应的 css 文件
  requireCss: true,
  // rollup 的 output 配置(可选)
  output: {},
  // 生成动态 rollup 配置(可选)
  rollup(entry, name, outDir, opts) {
    return {...}
  }
}

然后运行命令 vue-component-builder

注意

使用的项目需要安装下面的 npm 模块:

  • vue-runtime-helpers@1
  • @babel/runtime@7
  • core-js@2

Current Tags

  • 1.3.0                                ...           latest (4 months ago)

10 Versions

  • 1.3.0                                ...           4 months ago
  • 1.2.0                                ...           5 months ago
  • 1.1.3                                ...           6 months ago
  • 1.1.2                                ...           6 months ago
  • 1.1.1                                ...           6 months ago
  • 1.1.0                                ...           6 months ago
  • 1.0.3                                ...           6 months ago
  • 1.0.2                                ...           6 months ago
  • 1.0.1                                ...           6 months ago
  • 1.0.0                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 11
Last Day 0
Last Week 0
Last Month 2
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |