You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
module.exports = function (content, map) {
|
|
this.cacheable && this.cacheable()
|
|
// TODO 简单判断,只要包含 page-meta,就在外层包裹一层 view (vue2 不支持多 root)
|
|
if (content.indexOf('<page-meta') !== -1) {
|
|
return this.callback(null, `<view>${content}</view>`, map)
|
|
}
|
|
this.callback(null, content, map)
|
|
}
|
|
|