vuip-html-loader
v1.0.0
Published
编译vuip项目的指定目录下.html后缀的文件,类似vue-loader将template模板编译成ast挂载到JavaScript模块下export 组件配置
Downloads
2
Maintainers
Readme
Vuip-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'
}
]
}
]
}