forked from Qortal/qortal-ui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
574 B
22 lines
574 B
const rollup = require('rollup') |
|
|
|
const configs = require('./build-config.js')() |
|
|
|
const build = () => { |
|
configs.forEach(async file => { |
|
const bundle = await rollup.rollup(file.inputOptions); |
|
|
|
const { output } = await bundle.generate(file.outputOptions); |
|
|
|
for (const chunkOrAsset of output) { |
|
if (chunkOrAsset.type === 'asset') { |
|
} else { |
|
// .. |
|
} |
|
} |
|
|
|
await bundle.write(file.outputOptions); |
|
}) |
|
console.log('BUILD PLUGINS ==> Bundling Done 🎉'); |
|
} |
|
module.exports = build
|
|
|