w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Copy entire folder structure when converting haml files to html (using grunt)

Quick answer: Building the files object dynamically

Further explanation:

expand: true;              
     //Enable options below
cwd: '<%= yeoman.app %>/source'; //Current working directory
src: '**/*.haml';                //All files under cwd, including
sub-directories
dest: '<%= yeoman.app %>';       //Destination path prefix
ext: '.html';                    //Replace file's extension name
flatten: false;                  //KEEP folder structure

Use this piece of code to replace your original "files" property, GL.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.