mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-07-31 06:01:24 +00:00
Initial commit
This commit is contained in:
27
qortal-ui-plugins/watch.js
Normal file
27
qortal-ui-plugins/watch.js
Normal file
@@ -0,0 +1,27 @@
|
||||
const rollup = require('rollup')
|
||||
|
||||
const configs = require('./build-config.js')()
|
||||
|
||||
const watch = () => {
|
||||
configs.forEach(async file => {
|
||||
const watchOptions = {
|
||||
...file.inputOptions,
|
||||
output: [file.outputOptions],
|
||||
watch: {
|
||||
// chokidar,
|
||||
// clearScreen,
|
||||
// exclude,
|
||||
// include
|
||||
}
|
||||
}
|
||||
|
||||
const watcher = rollup.watch(watchOptions)
|
||||
|
||||
watcher.on('event', event => {
|
||||
// ...
|
||||
})
|
||||
})
|
||||
console.log('WATCH PLUGINS ==> Write Bundle : Done 🎉');
|
||||
}
|
||||
|
||||
module.exports = watch
|
Reference in New Issue
Block a user