template-string-loader
Webpack ES6 Template String Loader
Installation
npm install template-string-loader
Usage
You will need to use this with the babel loader or some other ES6 loader that supports template strings.
var template = data: '123';
Example template:
<!-- file.html -->${scope.data}
The loader returns a function like below. Call the function with the data you want to pass to the template. That data is available on the scope param:
module{return `<div></div>`;}
Result:
123