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? #143

Open
Hemanshu1belani opened this issue Apr 19, 2017 · 2 comments
Open

Relative paths in CSS and Maven minification? #143

Hemanshu1belani opened this issue Apr 19, 2017 · 2 comments

Comments

@Hemanshu1belani
Copy link

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.

@bakaibalazs
Copy link

Hi! Is there any solution for rhis?

@renanleandrof
Copy link

no solution for this?

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

3 participants