小程序project.config.json文件解读

{
	"description": "项目配置文件",		// 文件描述
	"packOptions": {	// 用于配置项目在打包过程中的选项,打包是预览、上传时对项目进行的必须步骤
		"ignore": []	// 用于配置打包时对符合规则的文件或文件夹进行忽略,以跳过打包的过程,被忽略的文件或文件夹不会出现在预览或上传的结果中。
	},
	"setting": {	// 项目设置
		"urlCheck": true,	// 是否检查安全域名和TLS版本
		"es6": true,	// 是否启用es6转es5
		"postcss": true,	// 上传代码样式是否自动补全
		"minified": true,	// 上传代码时是否自动压缩
		"newFeature": true,
		"autoAudits": false
	},
	"compileType": "miniprogram",	//编译类型,miniprogram为普通小程序项目,plugin为小程序插件项目
	"libVersion": "2.6.4",	// 基础库版本
	"appid": " ",	// 项目的appid,只在新建项目时读取
	"projectname": "%E9%87%8D%E6%96%B0%E6%A2%B3%E7%90%86",	// 项目名字,只在新建项目时读取
	"debugOptions": {	// 用于配置在对项目进行调试时的选项
		"hidedInDevtools": []	// 用于配置调试时于调试器Sources面板源代码的文件
	},
	"isGameTourist": false,
	"condition": {
		"search": {
			"current": -1,
			"list": []
		},
		"conversation": {
			"current": -1,
			"list": []
		},
		"game": {
			"currentL": -1,
			"list": []
		},
		"miniprogram": {
			"current": -1,
			"list": []
		}
	}
}

猜你喜欢

转载自blog.csdn.net/tozeroblog/article/details/88837817
今日推荐