首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >webpack也有奇怪的事

webpack也有奇怪的事
EN

Stack Overflow用户
提问于 2017-07-25 03:55:29
回答 1查看 92关注 0票数 0

我的环境:

OS:win10

Vue:2.82

Yarn:0.27.5

Nodejs:8.2.1

Other:Git-bash当我第一次使用vue init webpack alphalayui构建一个vue项目时,我发现了一件奇怪的事情。

它可以得到我的电子邮件ID,我感到非常惊讶,这个电子邮件ID只是在一个名为Foxmail.But的软件中使用,我在这台计算机中有很多电子邮件ID。

我想知道vue init如何获得我的电子邮件ID?

有人能帮我吗?提前谢谢。

$ vue init webpack alphalayui ? Project name (alphalayui) y ? Project name y ? Project description (A Vue.js project) y ? Project description y ? Author (alphayan <yanyq@sdkej.com>) y ? Author y ? Vue build standalone ? Install vue-router? (Y/n) y ? Install vue-router? Yes ? Use ESLint to lint your code? (Y/n) y ? Use ESLint to lint your code? Yes ? Pick an ESLint preset (Use arrow keys) ? Pick an ESLint preset Standard ? Setup unit tests with Karma + Mocha? (Y/n) y ? Setup unit tests with Karma + Mocha? Yes ? Setup e2e tests with Nightwatch? (Y/n) y ? Setup e2e tests with Nightwatch? Yes

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-07-25 04:01:53

试试这个:

代码语言:javascript
复制
git config --get user.email

...and看它是否匹配。

这是Vue.init在vue-cli/lib/git-user.js中使用的

代码语言:javascript
复制
try {
name = exec('git config --get user.name')
email = exec('git config --get user.email')
} catch (e) {}
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45293649

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档