Grails: automatically reload static resources
===

My Grails app uses the [resources plugin][1]. When running the app in the dev environment, I want to disable resource processing such that when I make a change to a .js or .css file I don't need to restart the server (just refresh the browser). So I added this to Config.groovy`

    environments {
        development {
            // Disable resource processing
            grails.resources.processing.enabled = false
    
            // Disable optimisations, not sure if this is necessary given the line above
            grails.resources.mappers.yuicssminify.disable = true
            grails.resources.mappers.yuijsminify.disable = true
            grails.resources.mappers.hashandcache.excludes = ['**/*']
        }
    }

However, I'm now getting a HTTP 404 for every attempt to retrieve a background image. For example, for the CSS rule:

    body {
        background: #748D27 url('../images/background.jpg') no-repeat fixed center top;
    }

I get the error

    404 Not Found - http://localhost:8080/summer-festivals/static/images/background.jpg

It seems from the error message that the URL is correct, i.e. this is the correct path for the image, but the image is missing.

The problem only occurs for background images. I'm using Grails 2.1.0 and version 1.1.6 of the resources plugin.

  [1]: http://grails-plugins.github.com/grails-resources/guide/index.html

