AngularFun
AngularFun copied to clipboard
src/index.html need to be excluded for watch:basic task
Hi,
src/index.html need to be excluded for watch:basic task, because it should be processed by watch:spaHtml task, in which the template:indexDev will handle the <% %> content
# Run tasks when monitored files change
watch:
basic:
files: [
'src/fonts/**'
'src/images/**'
'src/scripts/**/*.js'
'src/styles/**/*.css'
'src/**/*.html'
'!src/index.html' ## in order for watch:spaHtml
]
tasks: [
'copy:app'
'copy:dev'
'karma'
]
options:
livereload: true
nospawn: true
...
spaHtml:
files: 'src/index.html'
tasks: [
'copy:app'
'template:indexDev'
'copy:dev'
'karma'
]
options:
livereload: true
nospawn: true