0.1.1 • Published 4 years ago

@gem-mine/rollup-chain v0.1.1

Weekly downloads
13
License
-
Repository
-
Last release
4 years ago

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

4 years ago

0.1.0

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago