Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

给doScript 运行的脚本增加几个全局变量,file、cwd、refs_path #110

Merged
merged 1 commit into from
Nov 19, 2015
Merged

Conversation

charleslei
Copy link

"refs": {
"cp": [
"ver",
"src/html"
],
"sh": "xxxx"
},

使用这种配置时,vm和html里面的环境变量在拷贝到refs文件夹时会自动替换成真实的值,但是在“sh”属性指定的脚本执行时,refs里面的变量还没有被替换;

所以考虑在postmin对应的脚本上做;并给脚本增加全局属性,file,cwd,refs_path

yashiro1899 added a commit that referenced this pull request Nov 19, 2015
给doScript 运行的脚本增加几个全局变量,file、cwd、refs_path
@yashiro1899 yashiro1899 merged commit edba4da into rinh:master Nov 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants