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

options.mime strings don't expand grunt-config values #104

Open
cayleyh opened this issue May 13, 2016 · 0 comments
Open

options.mime strings don't expand grunt-config values #104

cayleyh opened this issue May 13, 2016 · 0 comments

Comments

@cayleyh
Copy link

cayleyh commented May 13, 2016

Working with a Gruntfile with different environments configured via grunt-config. Setting a value in options.mime based on the build destination like this:

aws_s3: {
   options: {
      mime: { '<%= grunt.config.get("BUILD_DIR") %>/file', 'application/json' }
   }
   ...
}

Doesn't work because the value for BUILD_DIR never gets substituted correctly. The mime object that is checked contains the literal string '<%= grunt.config.get("BUILD_DIR") %>/file' for the file path.

Very likely this is an issue with with Grunt or grunt-config directly, but thought I would raise it as I just spent 15 mins figuring out what was wrong :)

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

1 participant