Gruntjs angularjs cordova image not loading up

Gruntjs angularjs cordova image not loading up

本文关键字:loading up not image angularjs cordova Gruntjs      更新时间:2023-09-26

不知道我做错了什么。这就是我的 css 在咕噜咕噜之后的样子,但我的实际图像文件名是

backgorund-with-logo.d623d8e2.jpg

.containor{
    min-height: 100%; 
    background: url('/images/backgorund-with-logo.d623d8e2.jpg') center 30% no-repeat;
    background-size: 100%;
}

咕噜咕噜的文件

usemin: {
            html: ['<%= yeoman.dist %>/{,*/}*.html'],
            css: ['<%= yeoman.dist %>/styles/{,*/}*.css'],
            options: {
                assetsDirs: ['<%= yeoman.dist %>','<%= yeoman.dist %>/images']
            }
        },
imagemin: {
            dist: {
                files: [{
                    expand: true,
                    cwd: '<%= yeoman.app %>/images',
                    src: '{,*/}*.{png,jpg,jpeg,gif}',
                    dest: '<%= yeoman.dist %>/images'
                }]
            }
        },
filerev: {
            dist: {
                src: [
                    '<%= yeoman.dist %>/scripts/{,*/}*.js',
                    '<%= yeoman.dist %>/styles/{,*/}*.css',
                    '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
                    '<%= yeoman.dist %>/styles/fonts/*'
                ]
            }
        },

但是当我尝试在我的安卓设备上运行并通过 chrome 检查时无法加载资源 file:///images/backgorund-with-logo.d623d8e2.jpg

请帮忙

这不是

最好的方法,但我通过删除'<%= yeoman.dist %>/images/{,/}.{png,jpg,jpeg,gif,webp,svg}',来自FileRev.如果有更好的方法,请告诉我们