gruntjs / grunt-contrib-compass

Compile Compass to CSS.
http://gruntjs.com/
MIT License
625 stars 128 forks source link

Raw uses commas for joining array which breaks code #166

Closed F21 closed 10 years ago

F21 commented 10 years ago

I am using the raw configuration option to define a custom function for asset_cache_buster:

raw: ['asset_cache_buster do |path, real_path|',
         'bunch of code goes here'
         'end']

Unfortunately, commas are used to join the various parts of the array, which breaks the generated temp config file:

asset_cache_buster do |path, real_path|,bunch of code goes here,end,

The correct concatenated version should be:

asset_cache_buster do |path, real_path|
   bunch of code goes here
end
sindresorhus commented 10 years ago

https://github.com/gruntjs/grunt-contrib-compass#raw

raw should be a string