Created
September 16, 2013 15:02
-
-
Save vilmosioo/6581817 to your computer and use it in GitHub Desktop.
Example usage of ng-constant. Replace <...> with appropriate values.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.initConfig({ | |
ngconstant: { | |
<task>: [ | |
{ | |
dest: '<destination file>', | |
name: '<module name>', | |
constants: { | |
'<constant name>': '<constant value>', | |
'<constant name>': { ... } | |
'<constant name>': grunt.file.readJSON('<JSON file>') | |
... | |
} | |
} | |
] | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh thanks for sharing! But I do not see any warnings in my grunt test...
Why would grunt complain because it's an array?