Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gem-mine/rollup-chain
Use a chaining API to generate and simplify the modification of rollup config
https://github.com/gem-mine/rollup-chain
Last synced: about 1 month ago
JSON representation
Use a chaining API to generate and simplify the modification of rollup config
- Host: GitHub
- URL: https://github.com/gem-mine/rollup-chain
- Owner: gem-mine
- Created: 2020-06-24T06:00:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T19:26:07.000Z (about 2 years ago)
- Last Synced: 2024-04-13T19:06:06.375Z (9 months ago)
- Language: TypeScript
- Size: 2.04 MB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# rollup-chain
类似webpackChain, 支持v2.18.1
# Demo
```js
const RollupChainConfig = require('@gem-mine/rollup-chain')
const config = new RollupChainConfig()config.input('index')
.add('index', '/x.js')config
.output(currentTarget)
.dir(api.resolve(options.outputDir))
.entryFileNames(outputFilename)
.chunkFileNames(outputFilename)
.format(currentTarget)
.sourcemap(needSourceMap)config.plugin('node-resolve')
.use(nodeResolve, [{
rootDir: api.resolve('./'),
preferBuiltins: !options.browser,
browser: options.browser
}])
```