This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.
白鹭引擎在升级到5.1的同时, 迎来了一个重大功能的更新. 引擎和编译彻底分开, 同时, 对于编译功能引入的插件机制. 极大的方便了定制工作流. 1 插件机制 首先来介绍一下5.1之后的机制. 当使用新创建一个基于5.1的项目之后. 会发现与之前不同, 会多出一个 scripts 文件夹. 这个文件夹里面就是编译相关的类型, 其中 config.ts 便是编译的入口文件了, 类似于 webpack.config.js . 由于自动生成的里面有很多 ‘无效’ 的代码, 所以我们先来精简一下配置(关键代码). const config: ResourceManagerConfig = { configPath: '', resourceRoot: () => 'resource', buildConfig: (params) => { const { target, command,…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.