forked from Qortal/qortal-ui
17 lines
338 B
JavaScript
17 lines
338 B
JavaScript
const rollup = require('rollup')
|
|
|
|
async function watchInlines(inlineConfigs) {
|
|
for (const conf of inlineConfigs) {
|
|
const watchOptions = {
|
|
...conf.inputOptions,
|
|
output: [conf.outputOptions],
|
|
watch: {
|
|
}
|
|
}
|
|
const watcher = rollup.watch(watchOptions)
|
|
watcher.on('event', event => {
|
|
})
|
|
}
|
|
}
|
|
|
|
module.exports = watchInlines |