最近学习wepy做小程序,看到wepy版本的weui的时候,发现可以生成html,生成一个web文件夹,里面有index.html和index.js还有一个images文件夹,请问是如何生成的?
我看wepy文档里没有介绍这方面命令。
并查到在wepy.config.js里有相关html设置,如 htmlOutput,jsOutput:
...
build: {
web: {
apis: ['showToast', 'showActionSheet', 'showModal'],
components: ['navigator', 'button', 'icon', 'progress', 'slider', 'radio', 'radio-group', 'checkbox', 'checkbox-group', 'switch'],
htmlTemplate: path.join('src', 'index.template.html'),
htmlOutput: path.join('web', 'index.html'),
jsOutput: path.join('web', 'index.js')
}
},
...
可如何生成这个index.html和index.js呢?求大神解惑。
wepy build --output web