提交 3c7db84f 编写于 作者: d-u-a's avatar d-u-a

ad: 更新微信小程序 app.json

上级 01219a0f
......@@ -16,7 +16,7 @@ const traverseTemplate = require('./template/traverse')
const generateTemplate = require('./template/generate')
const compilerModule = require('./module')
// const compilerModuleUniad = require('./module.uniad')
const compilerModuleUniad = require('./module.uniad')
const compilerAlipayModule = require('./module-alipay')
const compilerToutiaoModule = require('./module-toutiao')
......@@ -92,7 +92,7 @@ module.exports = {
}
options.modules.push(compilerModule)
// options.modules.push(compilerModuleUniad)
options.modules.push(compilerModuleUniad)
if (options.mp.platform === 'mp-alipay') {
options.modules.push(compilerAlipayModule)
......
......@@ -225,7 +225,10 @@ module.exports = function generateJson (compilation) {
if (name === 'app.json') { // 删除manifest.json携带的配置项
delete jsonObj.insertAppCssToIndependent
delete jsonObj.independent
delete jsonObj.copyWxComponentsOnDemand
delete jsonObj.copyWxComponentsOnDemand
if (process.env.UNI_PLATFORM === 'mp-weixin' && process.env.USE_UNI_AD) {
require('./mp-weixin-uniad-app.json')(jsonObj)
}
} else { // 删除用于临时记录的属性
delete jsonObj.usingGlobalComponents
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册