AngularFun icon indicating copy to clipboard operation
AngularFun copied to clipboard

src/index.html need to be excluded for watch:basic task

Open mlhch opened this issue 10 years ago • 0 comments

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

mlhch avatar Jan 05 '15 03:01 mlhch