function filesWatcher() {
    const watcher = chokidar.watch(['src'], {
        ignored: ['.DS_Store', 'src/js/.jshintrc', 'src/js/.babelrc'],
        persistent: true,
        depth: 3,
        awaitWriteFinish: {
            stabilityThreshold: 500,
            pollInterval: 500
        },
    });

    watcher.on('change', path => {
        if (path.endsWith('.js')) {
           return handleJavascript(path);
        }
        if (path.endsWith('.css')) {
            return handlePostCSS(path);
        }
    })
    watcher.on('ready', () => console.log('Watching files', 'Initial scan complete. Ready for changes'))
}
Watcher
what the files for the backedn
this includes js and css files