I am using select2
in angular project (using yeoman). Select2 css is in the following dir:
bower_components/select2/select2.css bower_components/select2/select2.png
The css is using the select2.png in the following way: background-image: url('select2x2.png')
After running concat and minify i have the following structure:
bower_components/select2/d204997b.select2x2 styles/034d1972.vendor.css
But the problem is that the select2 part of the venodr css is looking for the d204997b.select2x2 in the styles directory.
This is my part of my GruntJS file:
rev: {
dist: {
files: {
src: [
'<%= yeoman.dist %>/scripts/{,*/}*.js',
'<%= yeoman.dist %>/styles/{,*/}*.css',
'<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
'<%= yeoman.dist %>/bower_components/select2/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
'<%= yeoman.dist %>/styles/fonts/*'
]
}
}
},
useminPrepare: {
html: '<%= yeoman.app %>/index.html',
options: {
dest: '<%= yeoman.dist %>'
}
},
usemin: {
html: ['<%= yeoman.dist %>/{,*/}*.html'],
css: ['<%= yeoman.dist %>/styles/{,*/}*.css'],
options: {
assetsDirs: ['<%= yeoman.dist %>' ,'<%= yeoman.dist %>/images' , '<%= yeoman.dist %>/bower_components/select2']
}
}
Thanks