ng-demos
ng-demos copied to clipboard
CSS minification and concatenation
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.
Just found an answer: instead of gulp-concat, there is a gulp-concat-css that does exactly what it needs. Please close this issue.