susanahernandezd
2/14/2018 - 12:31 PM

Grunt preprocess files

//Preprocess files from a folder
preprocess: {
  options: {
      context: {
        DEBUG: false,
        JSVERSION : '<%= globalConfig.versionjs  %>'
      }
  },
  html: {
    files: [{
        expand: true,
        cwd: '<%= globalConfig.app %>html/',
        src: ['**/*.html'],
        dest: '<%= globalConfig.build %>',
        ext: '.html',

    }]
  }
}

//Preprocess specific file
preprocess: {
 options: {
      context: {
        DEBUG: false,
        JSVERSION : '<%= globalConfig.versionjs  %>'
      }
 },
 html : {
   src : '<%= globalConfig.app %>index.html',
   dest : '<%= globalConfig.dist %>index.html'
 }
  
}