Skip to content

Files

Latest commit

dde9830 · Apr 27, 2018

History

History
21 lines (19 loc) · 638 Bytes

README.md

File metadata and controls

21 lines (19 loc) · 638 Bytes

mock-html-webpack-plugin

support mock for html base on html-webpack-plugin

测试方面可以参考extract-text-webpack-plugin

使用说明

模板只能支持赋值,不支持运算,所以如果模板里面有运算会报错

参数说明

type

模板引擎类型,目前支持如下几种,默认选择freemarker freemarker:${变量} velocity:$!{变量} mustache:{{变量}} smarty:{变量} jsp:<%= 变量%>

test

可支持之定义模板匹配规则

data

渲染模板的模拟数据

template

模板名称(可选),要和html-webpack-plugin一致,主要是解决多页的情况