Skip to content

Templates not compiled when production doesn't use expanded WAR #16

@seb-grant

Description

@seb-grant

Love the plugin, thanks for the work on it.

I've run into an issue whereby deployments that don't use the expanded WAR don't compile the .hbs files and simply spit them out in the page as JS files with uncompiled content (breaking the JS).

I have tracked this down to this log line:

ServletContext resource [/console/templates/message.hbs] cannot be resolved to absolute file path - web application archive not expanded?

Which then led me to:

paulfairless/grails-lesscss-resources#8

This fix basically uses a URL for the input resource, rather than a file on the filesystem; one suggestion is that Tomcat may not return a URL for unknown MIME types.

Anyway, I have applied the above patch (albeit quite crudely) to my local copy of the plugin and this has confirmed to work in production with an unexpanded WAR file.

Is this something that could go into the plugin?

Thanks!

Sebastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions