2021-12-25 14:39:47 +01:00
|
|
|
const rollup = require('rollup')
|
|
|
|
const configs = require('./build-config.js')()
|
|
|
|
|
|
|
|
const watch = () => {
|
|
|
|
configs.forEach(async file => {
|
|
|
|
const watchOptions = {
|
|
|
|
...file.inputOptions,
|
|
|
|
output: [file.outputOptions],
|
2023-05-11 18:40:52 +02:00
|
|
|
watch: {}
|
2021-12-25 14:39:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
const watcher = rollup.watch(watchOptions)
|
|
|
|
|
|
|
|
watcher.on('event', event => {
|
|
|
|
// ...
|
|
|
|
})
|
|
|
|
})
|
2023-05-11 18:40:52 +02:00
|
|
|
console.log('WATCH PLUGINS ==> Write Bundle : Done 🎉')
|
2021-12-25 14:39:47 +01:00
|
|
|
}
|
|
|
|
|
2024-05-08 13:16:23 +02:00
|
|
|
module.exports = watch
|