gulp-imports
gulp-imports copied to clipboard
Add support to inject html files inside javascript
For example:
template : '${import:template.html}',
This is useful to avoid writing html code inside javascript files, common uses are backbone, and typeahead and other front-end libraries.
You have to be aware of line-endings inside html file and escape any " or ', depending on which is used.
Congratulations for your plugin!