gaurav-spacreo / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

image path issues in css and js #221

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I tried using minify and it was working perfect except for images called from 
js and css files. I have places min folder in the root folder and minifying js 
and css files by giving respective path to "f" parameter. It is working 
properly there.

The issue arises where there is a css class which requires and image from the 
css path or js needs an external file. I understood the root cause for this 
issue, but do we have any easy fix for this as image paths will not be affected 
by minifying.

Thanks in Advance,
Retheesh Kumar

Original issue reported on code.google.com by retheesh...@gmail.com on 11 Feb 2011 at 1:33

GoogleCodeExporter commented 9 years ago
See: http://code.google.com/p/minify/wiki/UriRewriting
Can you give a concise use case where Minify is failing?

Original comment by mrclay....@gmail.com on 11 Feb 2011 at 1:50

GoogleCodeExporter commented 9 years ago
Thanks for your response.

I this URL rewriting is failing , I checked the generated CSS file and it was 
not rewriting any URLS.

Original comment by retheesh...@gmail.com on 14 Feb 2011 at 9:43

GoogleCodeExporter commented 9 years ago
Please include details: what content should be--but is not--being rewritten, 
include comments added by Debug Mode.

Original comment by mrclay....@gmail.com on 14 Feb 2011 at 10:58

GoogleCodeExporter commented 9 years ago
/* Minify_CSS_UriRewriter::$debugText

docRoot    : /var/www/html/orgdyne
currentDir : /var/www/html/orgdyne/templates/default/css

file-relative URI  : ../images/list_icon.jpg
path prepended     : 
/var/www/html/orgdyne/templates/default/css/../images/list_icon.jpg
docroot stripped   : /templates/default/css/../images/list_icon.jpg
traversals removed : /templates/default/images/list_icon.jpg

file-relative URI  : ../images/site_bg.jpg
path prepended     : 
/var/www/html/orgdyne/templates/default/css/../images/site_bg.jpg
docroot stripped   : /templates/default/css/../images/site_bg.jpg
traversals removed : /templates/default/images/site_bg.jpg

Above are some of debug text I ma getting. traversal removed field is showing 
the correct pathe, yet it does not show the image. The issue is because path 
starts from "/templates", if we give the "site_name/templates" (Full path) from 
manual rewriting, it is working. How to fix this issue?

Original comment by retheesh...@gmail.com on 16 Feb 2011 at 7:43

GoogleCodeExporter commented 9 years ago
you can see this wiki http://code.google.com/p/minify/wiki/AlternateFileLayouts.

Original comment by wangchao...@gmail.com on 2 Mar 2011 at 3:14

GoogleCodeExporter commented 9 years ago
I'm not convinced this is a bug. If this is still an issue, please bring it up 
on the Google Group.

Original comment by mrclay....@gmail.com on 24 Jun 2011 at 6:50