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

怎样连目录也上传? #1

Closed
pcaifeng opened this issue Dec 2, 2014 · 2 comments
Closed

怎样连目录也上传? #1

pcaifeng opened this issue Dec 2, 2014 · 2 comments

Comments

@pcaifeng
Copy link

pcaifeng commented Dec 2, 2014

files: {
"Scripts/": ["Scripts/*/.js"]
}

@pcaifeng
Copy link
Author

pcaifeng commented Dec 4, 2014

读了遍源码,搞定了。
objectGen: function (dest, src) {
//grunt.log.writeln([dest, src].join('/'));
return [dest, src].join('/');
}

谢谢了哈,非常适合我们

@pcaifeng pcaifeng closed this as completed Dec 4, 2014
@marshalYuan
Copy link
Owner

objectGen是可配置的

 oss: {
    options: {
      objectGen: function(dest, src){
        return [dest, src].join('\/');
      }.
    },
    files: {
      // Target-specific file lists and/or options go here.
    },
  },

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

No branches or pull requests

2 participants