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

Support cdn option declaration/override in tasks. #20

Open
bradleydwyer opened this issue Jul 6, 2013 · 1 comment
Open

Support cdn option declaration/override in tasks. #20

bradleydwyer opened this issue Jul 6, 2013 · 1 comment

Comments

@bradleydwyer
Copy link

At the moment you must specify the cdn root URL within the options:{} block.

It would be good to allow this to be specified per task, such that:

cdn: {
  options: {
    flatten: true
  },
  task1: {
    cdn: '//task1.cloudfront.net/',
    src: ['dist/*.html', 'dist/**/*.css']
  },
  task2: {
    cdn: '//task2.cloudfront.net/',
    src: ['dist/*.html', 'dist/**/*.css']
  }
}

is valid and prepends different root URLs depending on whether task1 or task2 is invoked.

@johnnyhalife
Copy link
Contributor

Fair enough, we should switch to be a multi-target task though.

On Sat, Jul 6, 2013 at 4:28 AM, bradhouse [email protected] wrote:

At the moment you must specify the cdn root URL within the options:{}
block.

It would be good to allow this to be specified per task, such that:

cdn: {
options: {
flatten: true
},
task1: {
cdn: '//task1.cloudfront.net/',
src: ['dist/.html', 'dist/__/.css']
},
task2: {
cdn: '//task2.cloudfront.net/',
src: ['dist/.html', 'dist/__/.css']
}
}

is valid and prepends different root URLs depending on whether task1 or
task2 is invoked.


Reply to this email directly or view it on GitHubhttps://github.com//issues/20
.

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