TaroXin / vue-pretty-logger

The console is more cool to use, easier to debug, and more fun log output. Enjoy the vue-pretty-logger in the vue project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

async 函数后加 // {#} 打包时候会报错

GarrenZhang opened this issue · comments

作者你好,无意中发现一个问题
在vue中写 async 函数, 例如
async test (a) {
}

作者你好,无意中发现一个问题
在vue中写 async 函数, 例如
async test (a) { // {#}

}
类似这样子的写法 在npm run build 的时候 会报错呢

可以贴一下报错的信息吗?

qq 20180509130755
84ua79 7x5c p kr9q v8x7
就是这个样子的 npm run build 的时候 会报错

这个应该不是 vue-pretty-logger 引起的错误,你是否删除掉 // {#} 后就能正常执行了呢?

vue-pretty-logger 会自动判断当前是否是开发环境的,在你运行 npm run build 的时候,NODE_ENV is Product 的情况下,vue-pretty-logger 是不会做处理的