UNPKG
fliphub-monorepo
Version:
latest (0.1.3)
0.1.3
0.1.2
the builder of builders
github.com/fliphub/fliphub
fliphub/fliphub
fliphub-monorepo
/
packages
/
fliphub
/
src
/
presets
/
todo
/
OpsHub
/
Watch.js
15 lines
(13 loc)
•
288 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const
compiler =
webpack
(builder.
config
)
try
{ compiler.
watch
({},
(
err, stats
) =>
{ context.
debugFor
(
'watch'
, stats.
toString
({
chunks
:
false
,
colors
:
true
, }))
// context.evts.emit('compiled.${name}')
resolve
(context) }) }
catch
(e) {
console
.
exit
(e) }