0.10.8 • Published 4 years ago
@reskript/cli-rollup v0.10.8
@reskript/cli-rollup
通过rollup打包基础库。
正常使用
使用skr rollup
来对基础库(非业务系统)进行打包,底层使用rollup实现。
Usage: rollup [options]
Build entire app
Options:
--cwd [value] override current working directory (default: process.cwd())
--mode [value] set build mode, default to "production" (default: "production")
--clean remove dist directory before build
-h, --help output usage information
配置构建
可以在settings.js
中导出rollup
对象,允许有以下属性:
{string} styleOutput
:指定样式的输出格式,为"inject"
时内置到JavaScript中,为"extract"
时输出为与JavaScript同名的.css
文件,为"index"
时输出为单个style/index.css
文件,默认值为"index"
。{string} target
:指定编译的目标平台,为"web"
、"node"
或"universal"
,默认为"universal"
。指定"web"
时仅用于浏览器,但可以基于此做一些优化,如移除node模块的依赖。
除此以外,当前版本不暴露任何配置,封闭了eslint
、babel
、postcss
等能力。
1.0.0-beta.15
4 years ago
1.0.0-beta.14
4 years ago
1.0.0-beta.11
4 years ago
1.0.0-beta.12
4 years ago
1.0.0-beta.13
4 years ago
1.0.0-beta.10
4 years ago
1.0.0-beta.9
4 years ago
1.0.0-beta.8
4 years ago
1.0.0-beta.7
4 years ago
0.10.8
4 years ago
0.10.7
4 years ago
1.0.0-beta.6
4 years ago
1.0.0-beta.5
4 years ago
0.10.6
4 years ago
1.0.0-beta.4
4 years ago
1.0.0-beta.3
4 years ago
1.0.0-beta.2
4 years ago
1.0.0-beta.1
4 years ago
1.0.0-beta.0
4 years ago
0.10.4
4 years ago
0.10.5
4 years ago
0.10.0
4 years ago
0.10.2
4 years ago
0.10.3
4 years ago
0.9.3
4 years ago
0.9.0
4 years ago
0.9.2
4 years ago
0.9.1
4 years ago
0.8.17
4 years ago
0.8.1-beta.1
4 years ago
0.8.1-beta.0
4 years ago