alanshaw / grunt-include-replace

Grunt task to include files and replace variables. Allows for parameterised includes.
MIT License
200 stars 45 forks source link

Resolve issue #53 #54

Closed legendtang closed 9 years ago

legendtang commented 9 years ago

Add an option encoding. For example:

        includereplace: {
            your_target: {
                options: {
                    encoding: 'gbk'
                },
                files: [{
                    expand: true,
                    flatten: true,
                    cwd: 'dev/tmpl/',
                    src: ['*.html', '!*.inc'],
                    dest: 'html/',
                }]
            }
        }

This will make the output files with GBK encoding.

alanshaw commented 9 years ago

Awesome, thank you!