ng-demos icon indicating copy to clipboard operation
ng-demos copied to clipboard

CSS minification and concatenation

Open ssljivic opened this issue 9 years ago • 1 comments

First, thanks for the great demos.

One issue that I am facing is CSS minification and concatenation using gulp. I have tried the gulp task that you have in cc-bmean project, but it works only for some special cases.

The problem occurs with the following layout:

css
  one
    img
      img.png
    one.css
  two
    img
      img.png
    two.css

Both one.css and two.css files have a relative URL to the "img/img.png" files - and off course images are different. This may be avoided for application CSS files by organizing the files in a different way, but often third-party libraries come with this layout.

By doing simple concat() we loose information about correct image URL.

I would appreciate your help greatly on this issue.

ssljivic avatar Sep 08 '15 10:09 ssljivic

Just found an answer: instead of gulp-concat, there is a gulp-concat-css that does exactly what it needs. Please close this issue.

ssljivic avatar Sep 08 '15 11:09 ssljivic