doc: APP 专题
This commit is contained in:
parent
1c7232062e
commit
109f6b1240
@ -143,6 +143,7 @@ export default defineConfig({
|
||||
{ text: '常见问题2', link: '15-faq' },
|
||||
{ text: '小程序标识', link: '16-terminology' },
|
||||
{ text: '自动生成代码', link: '17-generate' },
|
||||
{ text: 'App 专题', link: '18-app' },
|
||||
{ text: '最佳实践', link: '20-best' },
|
||||
],
|
||||
},
|
||||
|
13
docs/base/18-app.md
Normal file
13
docs/base/18-app.md
Normal file
@ -0,0 +1,13 @@
|
||||
# App 专题
|
||||
|
||||
## manifest.json的内容搬运到 manifest.config.ts
|
||||
|
||||
我们默认的的 `manifest.config.ts` 只包含了比较基础的 `uniapp` 配置,有的时候我们需要在打包 `app` 时在 `hbuilderx` 里面额外设置一些配置,那么就需要配置好后把 `manifest.json` 中的内容拷贝到 `manifest.config.ts` 中,后面运行就不会丢失了。
|
||||
|
||||
举例子,我在 `manifest.json` 里面配置了 2个模块配置,如下:
|
||||

|
||||
|
||||
点击左侧下面的 `源码视图` 就可以看到增加了如下内容:
|
||||

|
||||
|
||||
只需要把对应的内容拷贝到 `manifest.config.ts` 中的 `distribute.plugins` 里面即可。
|
BIN
docs/base/image-18-2.png
Normal file
BIN
docs/base/image-18-2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 236 KiB |
BIN
docs/base/image-18.png
Normal file
BIN
docs/base/image-18.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 534 KiB |
Loading…
x
Reference in New Issue
Block a user