@gem-mine/rollup-chain

0.1.1 • Public • Published

rollup-chain

类似webpackChain, 支持v2.18.1

Demo

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
  }])

Readme

Keywords

none

Package Sidebar

Install

npm i @gem-mine/rollup-chain

Weekly Downloads

0

Version

0.1.1

License

none

Unpacked Size

46.8 kB

Total Files

26

Last publish

Collaborators

  • caolvchong
  • wengzp
  • guoyh
  • mraiguo
  • amazebird
  • githoniel
  • janya
  • gylllll