rollup-build-helper
A tool to use rollup to help build javascript file.
Last updated a year ago by byr-gdp .
ISC · Original npm · Tarball · package.json
$ cnpm install rollup-build-helper 
SYNC missed versions from official npm registry.

rollup-build-helper

简易 rollup 打包助手

Usage

  • 项目中引入 rollup-build-helper(yarn add rollup-build-helper -D)。
  • 手动配合 package.json,增加 scripts 字段 build 字段,如 "build": "./node_modules/.bin/rollup-build-helper"
  • 配置根目录下配置 .rollup-build-helper-config.json 文件,指定包名、入口文件及输出路径。
  • 配置 .babelrc 并添加 babel-preset-env、babel-core 依赖。
  • 执行 npm run build(构建)。

Note

默认 .babelrc 配置:

  • 启用 debug
  • 关闭 useBuiltIns,因为不导入 babel-polyfill
  • 参考 example

TODO

  • watch 支持

Current Tags

  • 0.0.2                                ...           latest (a year ago)

2 Versions

  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (9)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |