// Watch project files for and spawn associated tasks upon changes
module.exports = function(grunt) {
    grunt.config('watch', {
        options: {
            spawn: false
        },
        // svg: {
        //     files: 'src/icons/*.svg',
        //     tasks: ['svgstore'],
        // },
        processhtml: {
            files: ['src/pages/*.html', 'src/includes/*.html'],
            tasks: ['processhtml:dev'],
        },
        scss: {
            files: 'src/scss/**/*.scss',
            tasks: ['sass', 'postcss:build', 'bs-inject-css'],
        },
        js: {
            files: 'src/scripts/main.js',
            tasks: ['concat', 'bs-inject-js'],
        }
    });
};

// Watch project files for and spawn associated tasks upon changes
module.exports = function(grunt) {
    grunt.config('watch', {
        options: {
            spawn: false
        },
        // svg: {
        //     files: 'src/icons/*.svg',
        //     tasks: ['svgstore'],
        // },
        processhtml: {
            files: ['src/pages/*.html', 'src/includes/*.html', 'src/includes/legacy/*.html'],
            tasks: ['processhtml:dev'],
        },
        scss: {
            files: 'src/scss/**/*.scss',
            tasks: ['sass', 'postcss:build', 'bs-inject-css'],
        },
        js: {
            files: 'src/scripts/main.js',
            tasks: ['concat', 'bs-inject-js'],
        }
    });
};

Watch legacy includes directory as well
Watch legacy includes directory as well
