import { red, cyan, blue } from 'kolorist' export function friendlyErrors(pathname, ext = '') { console.log(cyan(pathname), red(`not found!!!`)) console.log( red('请正确填写引入的文件路径, fite 不再自动补全【%s】\n'), blue(`/index.${ext}`) ) }