1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| const path = require('path')
| const {
| parseJson
| } = require('@dcloudio/uni-cli-shared/lib/json')
|
| module.exports = {
| options: {
| global: 'my',
| cssVars: {
| '--status-bar-height': '25px',
| '--window-top': '0px',
| '--window-bottom': '0px',
| '--window-left': '0px',
| '--window-right': '0px'
| },
| extnames: {
| style: '.acss',
| template: '.axml',
| filter: '.sjs'
| },
| filterTag: 'sjs',
| subPackages: true,
| project: 'mini.project.json'
| },
| copyWebpackOptions (platformOptions, vueOptions) {
| const copyOptions = ['mycomponents', 'customize-tab-bar', 'ext.json', 'preload.json']
|
| global.uniModules.forEach(module => {
| copyOptions.push('uni_modules/' + module + '/mycomponents')
| })
|
| if (process.env.UNI_MP_PLUGIN) {
| copyOptions.push({
| from: path.resolve(process.env.UNI_INPUT_DIR, 'plugin.json'),
| transform: content => JSON.stringify(parseJson(content.toString(), true))
| })
| }
|
| return copyOptions
| }
| }
|
|