         files: [
           expand: true,
           cwd: "<%= appConfig.app %>",
-          src: ["index.html"],
+          src: [
+            "**/*.html"
+            "!templates/**/*"
+          ],
           dest: "<%= appConfig.dist %>"
         ]
 

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

          ]

    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 %>"]
