浏览代码

Fix a bug with the favicon spinner

Gaël Métais 4 年之前
父节点
当前提交
443f452689
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      Gruntfile.js

+ 9 - 1
Gruntfile.js

@@ -60,6 +60,13 @@ module.exports = function(grunt) {
                     {src: ['./front/src/img/favicon.png'], dest: './front/build/img/favicon.png'},
                     {src: ['./front/src/img/logo-large.png'], dest: './front/build/img/logo-large.png'},
                 ]
+            },
+            favicons: {
+                files: [
+                    {src: ['./front/src/img/favicon.png'], dest: './front/build/img/favicon.png'},
+                    {src: ['./front/src/img/favicon-fail.png'], dest: './front/build/img/favicon-fail.png'},
+                    {src: ['./front/src/img/favicon-success.png'], dest: './front/build/img/favicon-success.png'},
+                ]
             }
         },
         mochaTest: {
@@ -206,7 +213,8 @@ module.exports = function(grunt) {
         'filerev',
         'usemin',
         'htmlmin:main',
-        'clean:tmp'
+        'clean:tmp',
+        'copy:favicons'
     ]);
 
     grunt.registerTask('hint', [