默认编译后缀名为 .wxml 的 pug 语法文件
npm i weapp-plugin-pug -D
weapp.config.js
module.exports = {
plugins: [
['weapp-plugin-pug', {
ignore: undefined,
match: /\.wxml$/,
afterExt: '.wxml',
...config
}],
// 'weapp-plugin-pug',
],
};