jhtmls-loader jhtmls 模版的 webpack 预编译 loader 安装 $ npm install jhtmls-loader 说明 (模版具体用法请看 https://github.com/zswang/jhtmls) var data = {...}; var render = require('jhtmls!./template.html'); // 返回渲染函数 document.body.innerHTML = render(data); LICENSE MIT