AlphaX-Projects fa29ff4c43 Update UI
Refactor and added new functioms
2024-05-08 13:16:23 +02:00

24 lines
504 B
JavaScript

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