What is the pattern needed to achieve the following.
.tmp
This is to register livereload task in Grunt file.
I tried few varieties of below config. It matches all files in .tmp, but not recursively in .tmp/views
Also tried,
'.tmp/{,views/**/}*.html'
but the same result.
livereload: { options: { livereload: LIVERELOAD_PORT }, files: [ '.tmp/{,views/**}*.html' ] }
You should be able to get the matching you need by passing two elements in the files array:
files: [
'.tmp/*.html',
'.tmp/views/**/*.html',
]
This will match any .html files directly below .tmp/, as well as any .html file in .tmp/views/, whether directly under that directory or deeper (the /**/ part).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With