Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
seb-grant opened this issue May 19, 2014 · 1 comment
Open

Comments

@seb-grant
Copy link

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

@sheehan
Copy link
Owner

sheehan commented May 21, 2014

Thanks Sebastian. I'll take a look as soon as I get a chance to test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants