10 lines
279 B
JavaScript
10 lines
279 B
JavaScript
|
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}`)
|
||
|
)
|
||
|
}
|