Skip to content

CSS and background url #18

Closed
yanickrochon opened this Issue Aug 26, 2011 · 5 comments

2 participants

@yanickrochon

When minimizing CSS, any url(path) become wrong and generate 404 errors.

For example, when including a jQuery UI theme in the #{greenscript.css} tag, and when minimizing is enable, all the theme's images are not loaded because the minimized CSS is not where the original CSS is and all paths are relative to the original CSS.

The fix should include having a path prefix to make sure all resource paths are preserved. This should be a configurable option, and a simple regex replace should do the trick.

Note : see my question on SO : http://stackoverflow.com/questions/7207554/play-framework-greenscript-url-css-rules-wrong-path

@greenlaw110
Owner

Fixed in v1.2.6c.

@greenlaw110 greenlaw110 closed this Sep 8, 2011
@yanickrochon

Is it me or the CSS is always minified? Starting play 1.2.3 un dev mode and without any greenscript options, all css are minified (not compressed). Moreover, the fix does not solve every problems. I have a custom jQuery UI theme and the icons' paths are wrong. I will try and investigate more about this, but the problem is just annoying.

@greenlaw110
Owner
@greenlaw110
Owner
@greenlaw110
Owner

please try the latest v1.2.6e version. I have added a jquery-ui test app and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.