1.0.3 • Published 4 years ago
vui-html-loader v1.0.3
Vui-html-loader
Description | 说明
编译vuip项目的指定目录下.html后缀的文件,类似vue-loader将template模板编译成ast挂载到JavaScript模块下export 组件配置
Install | 安装
npm install vui-html-loader -dev
Example | 例子
<div class="main">
<h1>hello world</h1>
</div>
---output | 输出 ---
const ast = {
type: 1,
tagName: 'div',
attr: {
'class': 'main'
},
children: [
{
type: 1,
tagName: 'h1',
children: [
{
type: 2,
content: 'hello world'
}
]
}
]
}
版本更新说明
- 1.0.3
html解析bug修复
- 1.0.4
自闭合标签解析bug修复