grunt-glob
A grunt task that replaces
<script>
and<link>
tags containing glob references on the filesystem with expanded tags.
Installation
Install as a dev dependency:
npm install grunt-glob --save-dev
Usage
Assuming the following filesystem...
src/
index.html
dest/
css/
a.css
b.css
js/
a.js
b.js
... and given src/index.html
...
Document
... and the following grunt config...
glob: files: 'dest/index.html': 'src/index.html'
... running grunt glob
will produce the following in dest/index.html
...
Document
Why do I need this?
I use primarily for local development, transpiling ES6 modules to a temp directory, and then globbing all those transpiled files in my index.html file, rather than catting them all together.