grunt-sitemap
grunt-sitemap copied to clipboard
`pattern` should take into account `siteRoot` option
sitemap: {
dist: {
pattern: ['./dist/**/*.html', '!./dist/**/google*.html'],
siteRoot: './dist'
}
},
should be
sitemap: {
dist: {
pattern: ['**/*.html', '!**/google*.html'],
siteRoot: './dist'
}
},
I think I get what you're saying, but could you explain just a bit further? Maybe an example of what happens now, and what should happen?
I added more details in my OP.
I think that makes sense, but it seems like the kind of change that might break things for current users. Maybe we should put that in a 1.3.0 release?
First, we need to fix it :p IMO that's a bug so if we consider it as such it should be in 1.2.2. Otherwise, 1.3.0.
Reopening since I had to revert the patch because it caused issues.