function openFile(type, sitePath, file) {
    if (type === 'file') {
        open(path.resolve(sitePath, file));
    } else {
        // TODO unless we add a --no-watch flag, we can just delegate this to browser-sync
        open(file);
    }
}
// Open a file using browser, text-editor
Open a file using browser, text-editor
Open a file using browser text - editor
function openFile(type, sitePath, file) {
    if (type === 'file') {
        open(path.resolve(sitePath, file));
    } else {
        open(file);
    }
}
function openFile ( type , sitePath , file ) { if ( type === 'file' ) { open ( path . resolve ( sitePath , file ) ) ; } else { open ( file ) ; } }
Open a file using browser, text-editor
Open a file using browser text - editor
// TODO unless we add a --no-watch flag, we can just delegate this to browser-sync