无法编译AngulayJS源码

无法编译AngulayJS源码

找到./lib/versions/versions-info.js文件并找到getBuild()函数并修改

1
2
3
4
5
6
7
function getBuild() {
var hash = shell.exec('git rev-parse --short HEAD', {silent: true}).output.replace('\n', '');
if (hash.code === 0) { // just check code answer as in other places
return 'sha.'+hash;
}
return '';
}

安装npm install -g grunt-cli

运行grunt自动编译

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×