This repository was archived by the owner on Mar 26, 2018. It is now read-only.
This repository was archived by the owner on Mar 26, 2018. It is now read-only.
Bad dest added when using targets #16
Open
Description
I had a config that looked like this:
filerev: {
options: {
encoding: 'utf8',
algorithm: 'md5',
length: 8
},
files: {
src: [
'.tmp/build/images/**/*.*',
'.tmp/build/sounds/**/*.*',
'.tmp/build/app.css',
'.tmp/build/app.js'
]
}
}
Which, at the time, did exactly what I wanted. The files were simply replaced in their current directory.
I realized that when I updated images that were referred to in the css/js files, that was not accounted for in their version. So I used targets and separated out the config:
filerev: {
options: {
encoding: 'utf8',
algorithm: 'md5',
length: 8
},
media: {
files: {
src: [
'.tmp/build/images/**/*.*',
'.tmp/build/sounds/**/*.*'
]
}
},
sources: {
files: {
src: [
'.tmp/build/app.css',
'.tmp/build/app.js'
]
}
}
}
I switched my compilation to use both. However, now the files were being renamed and put in the "src" directory.