Smarty loader for webpack Install $ npm i smarty-loader Usage module: { loaders: [ { test: /\.tpl$|.smarty$/, loader: 'smarty' } ] } var template = require('./template.tpl'); var html = template.fetch({ foo: 'bar' }); License MIT (http://www.opensource.org/licenses/mit-license.php)