title: grunt-dom-munger - n error occurred while processing a template (Cannot read property 'appcss' of undefined)
body: <p>I am building angular application via grunt and are facing problem in grunt-dom-munger</p>
  
  <p>here is my grunt file config settings</p>
  
  <pre><code>dom_munger: {
              read: {
                  options: {
                      read: [
                          {
                              selector: 'script', // script[data-concat!="false"]
                              attribute: 'src',
                              writeto: 'appjs',
                              isPath: true
                          },
                          {
                              selector: 'link[rel="stylesheet"]', // link[rel="stylesheet"][data-concat!="false"]
                              attribute: 'href',
                              writeto: 'appcss',
                              isPath: true
                          }
                      ]
                  },
  
  
          src: 'app/index.html'
          },
          update: {
              options: {
                  remove: ['script[data-remove!="false"]', 'link[data-remove!="false"]'],
                  append: [
                      {
                          selector: 'body',
                          html: '&lt;script src="app.full.min.js"&gt;&lt;/script&gt;&lt;script src="config.js"&gt;&lt;/script&gt;'
                      },
                      {
                          selector: 'head',
                          html: '&lt;link href="favicon.ico" rel="shortcut icon"&gt;&lt;link rel="stylesheet" href="assets/css/app.full.min.css"&gt;'
                      }
                  ]
              },
              src: 'app/index.html',
              dest: 'dist/app/index.html'
          }
      },
      cssmin: {
          main: {
              src: ['temp/app.css', '&lt;%= dom_munger.data.appcss %&gt;'],
              dest: 'dist/app/assets/css/app.full.min.css'
          }
      },
      concat: {
          main: {
              src: ['&lt;%= dom_munger.data.appjs %&gt;', '&lt;%= ngtemplates.main.dest %&gt;'],
              dest: 'temp/app.full.js'
          }
      },
  </code></pre>
  
  <p>when i run grunt build, the following warning / error thrown</p>
  
  <pre><code> Running "cssmin:main" (cssmin) task
   Warning: An error occurred while processing a template (Cannot read property 'appcss' of undefined). Used --force, continuing.
      Warning: An error occurred while processing a template (Cannot read property 'appcss' of undefined). Used --force, continuing.
      Warning: An error occurred while processing a template (Cannot read property 'appcss' of undefined). Used --force, continuing.
      Warning: The "path" argument must be of type string Used --force, continuing.
  
      Running "concat:main" (concat) task
      Warning: An error occurred while processing a template (Cannot read property 'appjs' of undefined). Used --force, continuing.
      Warning: An error occurred while processing a template (Cannot read property 'appjs' of undefined). Used --force, continuing.
      Warning: An error occurred while processing a template (Cannot read property 'appjs' of undefined). Used --force, continuing.
      File temp/app.full.js created.
  </code></pre>
  
  <p>Note: my source app files located in /app directory and destination folder is /dist/</p>
  
  <p>Can anyone help me where i am making mistake.</p>