Closed johnyb closed 10 years ago
good catch! thanks!
merging despite the failed Travis CI build, I don't think it's related.
Yes, this test has been failing before :/ but I was unsure how to fix it.
no prob, I'll get it fixed, I think it's a less.js issue. thanks again!
Commit 0729eeb5dd874233f93a9a613c9f7ebe18cea684 changed one call to _.merge so it would overwrite the grunt.config.data object. This reverts this one line accordingly.
Problem
.merge (see lodash documentation) overwrites the first argument, since this is used as the destination. Using just a clean object as destination, .merge will also return the destination object and store this result into metadata.
Overwriting grunt.config.data is a big problem if the
less
task is used in combination with other tasks likecompress
from the grunt-contrib-compress library. There is acompress
option for assemble-less, that will be available ingrunt.task.current.data.options
. Merging this into grunt.config.data will then overwrite the configuration of the compress task (withtrue
in this case). Leading to a very strange error message from grunt, since some kind of object is expected there.