Closed paulbdavis closed 10 years ago
When overriding a basePath in a template, this allows for variagles from grunt.config.get to be used. Example
grunt.config.get
grunt.initConfig({ buildDir: 'build/', includeSource: { options: { basePath: '<%= buildDir %>/js/app' baseUrl: 'js/app/' }, all: { '<%= buildDir %>/index/html': ['<%= buildDir %>/index/html'] } } })
<!-- include: "type": "css", "basePath": "<%= buildDir %>/css", "baseUrl": "css/", "files": "**/*.css" --> <!-- include: "type": "js", "basePath": "<%= buildDir %>/js/vendor", "baseUrl": "js/vendor/", "files": "**/*.js" --> <!-- include: "type": "js", "files": "**/*.js" -->
In this case, all of the <%= buildDir %> tags become 'build/' before looking for files.
<%= buildDir %>
'build/'
When overriding a basePath in a template, this allows for variagles from
grunt.config.get
to be used. ExampleIn this case, all of the
<%= buildDir %>
tags become'build/'
before looking for files.