dwightjack / grunt-premailer

Grunt wrapper task for Premailer
MIT License
114 stars 16 forks source link

Parse multiple files without combining #16

Closed amclin closed 10 years ago

amclin commented 10 years ago

Why is grunt-premailer combining multiple source files together?

This makes it impossible to operate on a multi-tiered directory of files.

Concatenation of HTML files should happen with a seperate grunt task before passing to grunt-premailer to allow for more flexibility.

amclin commented 10 years ago

Consider the following folder structure: /build /src /src/example1.html /src/subfolder/example2.html

If the following task is run, example1.html and example2.html will be joined together:

    premailer: {
        dist: {
            files: [{
                expand: true,
                cwd: 'src/',
                src: ['**/*.html'],
                dest: 'build/'
            }]
        }
    }

Expected output would be: /build/example1.html /build/subfolder/example2.html

This would be consistent with other grunt tasks