Closed amclin closed 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
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.