component-scripts
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

component-scripts

基于 rollup 封装的可打包资源文件的能力,支持打包 React 组件

扩展链接: Rollup.js 学习笔记

功能

  • 同时支持 CJSESMUMDSystemJSIIFE 打包格式(默认 CJSESMUMD
  • 支持 TypeScript 代码打包及类型检查
  • 大部分情况下只需要很少配置甚至无需配置(一般场景基本无需配置)
  • 支持代码混淆压缩和 SourceMap

使用说明

安装

yarn add -D component-scripts

使用

# dev
npx component-scripts dev

# build
npx component-scripts build
import { dev, build } from "component-scripts";

// dev();
build();

配置文件

配置文件为 component.config.js

配置项说明

TODO ...

More links

Readme

Keywords

Package Sidebar

Install

npm i component-scripts

Weekly Downloads

8

Version

0.1.0

License

MIT

Unpacked Size

86.2 kB

Total Files

18

Last publish

Collaborators

  • shenbao