UNPKG

297 BJavaScriptView Raw
1module.exports = poi => {
2 poi.cli.handleCommand('watch', 'Run app in watch mode', () => {
3 const compiler = poi.createCompiler()
4 const watcher = compiler.watch({}, err => {
5 if (err) {
6 console.error(err)
7 }
8 })
9 return {
10 webpackWatcher: watcher
11 }
12 })
13}