           dest: "<%= appConfig.dev %>"
           src: [
             "*.{ico,txt}"
-            "index.html" # TODO all html files except ng templates
+            "**/*.html"
+            "!templates/**/*"
             "components/**/*"
             "images/**/*.{gif,webp}"
             "styles/fonts/*"

        files: [
          expand: true,
          cwd: "<%= appConfig.app %>",
          src: ["index.html"],
          dest: "<%= appConfig.dist %>"
        ]


          ]

    useminPrepare:
      html: [
        "<%= appConfig.dev %>/**/*.html"
        "!<%= appConfig.dev %>/templates/**/*"
      ]
      options:
        dest: "<%= appConfig.dist %>"

    usemin:
      html: [
        "<%= appConfig.dist %>/**/*.html"
        "!<%= appConfig.dist %>/templates/**/*"
      ]
      css: ["<%= appConfig.dist %>/styles/**/*.css"]
      options:
        dirs: ["<%= appConfig.dist %>"]
