Emblem (Emblem Templates) loader for webpack. Uses emblem's compile function to handlebars.js.
npm install emblem-loader
var template = require("emblem!./file.em");
// And then use it somewhere in your code
template(data) // Pass object with data
You can also set it up the following in the webpack.config.js file
module.exports = {
module: {
loaders: [
{ test: /\.em$/, loader: emblem-loader }
]
},
resolve: {
extensions: ['.em']
}
}