Skip to content

Can we watch files in node_modules? #114

Discussion options

You must be logged in to vote

But, you can do it programmatically:

import chokidar from 'chokidar'
import pkg from 'five-server'

const { default: FiveServer } = pkg
const fiveServer = new FiveServer()

fiveServer.start({ open: './examples', watch: false })

const watcher = chokidar.watch(['**/dist/**', 'examples'])

watcher.on('all', (event, path) => {
  fiveServer.reloadBrowserWindow()
})

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yandeu
Comment options

Answer selected by yandeu
@trusktr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants