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

Relative paths in CSS and Maven minification? #24

Closed
blutorange opened this issue Oct 14, 2018 · 2 comments
Closed

Relative paths in CSS and Maven minification? #24

blutorange opened this issue Oct 14, 2018 · 2 comments

Comments

@blutorange
Copy link
Owner

Issue by Hemanshu1belani
Wednesday Apr 19, 2017 at 06:12 GMT
Originally opened as samaxes#143


The problem
I have a workflow setup where maven combines and minifies multiple css files into one single file for a production environment.

The problem I'm facing is that font and image paths are breaking after running minification, as they're still pointing towards their existing relative file paths.

As an example:

Within static/homepage/startup/common-files/css/icon-font.css I have the following CSS rule:

@font-face{font-family:Flat-UI-Icons;src:url(../fonts/Startup-Icons.eot);
In my pom, I specify that I want the output of my minified css file to be style.min.css located at static/css/custom/homepage/. The problem with this is that the filepath changes, resulting in all font and image dependencies to no longer be found and return a 404 status in the browser.

@blutorange
Copy link
Owner Author

Comment by bakaibalazs
Saturday Sep 02, 2017 at 21:27 GMT


Hi! Is there any solution for rhis?

@blutorange
Copy link
Owner Author

CSS/Yui Compressor is out-of-scope now.

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

1 participant