一、packOptions
需要注意的是,在project.config.json里不要写注释。
用于配置项目在打包过程中的选项。指定packOptions.ignore字段,用来配置打包时对符合指定规则的文件或文件夹进行忽略
{
"description": "项目配置文件。",
"setting": {
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true,
"newFeature": true
},
"compileType": "miniprogram",
"libVersion": "1.6.6",
"appid": "touristappid",
"projectname": "whiteBar",
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
},
"packOptions": {
"ignore": [
{
"type":"file",
"value": "gulpfile.js"
}
]
}
}