Skip to content

Instantly share code, notes, and snippets.

@gustavderdrache
Created May 27, 2016 15:15
Show Gist options
  • Save gustavderdrache/a1e32d860b716dc4c10f88ebe62620a2 to your computer and use it in GitHub Desktop.
Save gustavderdrache/a1e32d860b716dc4c10f88ebe62620a2 to your computer and use it in GitHub Desktop.
minimal htmlOutputTemplate configuration
<p>hello, world</p>
module.exports = function (grunt) {
grunt.initConfig({
ts: {
'custom-template': {
html: ['file.html'],
src: ['.'],
options: {
compile: false,
htmlOutputTemplate: 'export default \'<%= content %>\'',
}
}
}
});
grunt.loadNpmTasks('grunt-ts');
};
{
"dependencies": {
"grunt": "^1.0.1",
"grunt-ts": "^5.5.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment