uni.config.js 633 字节
Newer Older
fxy060608's avatar
fxy060608 已提交
1 2 3 4 5 6
module.exports = {
  options: {
    global: 'my',
    cssVars: {
      '--status-bar-height': '25px',
      '--window-top': '0px',
fxy060608's avatar
fxy060608 已提交
7 8
      '--window-bottom': '0px',
      '--window-left': '0px',
fxy060608's avatar
fxy060608 已提交
9
      '--window-right': '0px'
fxy060608's avatar
fxy060608 已提交
10 11 12 13 14 15 16 17 18 19
    },
    extnames: {
      style: '.acss',
      template: '.axml',
      filter: '.sjs'
    },
    filterTag: 'sjs',
    subPackages: true
  },
  copyWebpackOptions (platformOptions, vueOptions) {
fxy060608's avatar
fxy060608 已提交
20 21 22 23 24
    const copyOptions = ['mycomponents']
    global.uniModules.forEach(module => {
      copyOptions.push('uni_modules/' + module + '/mycomponents')
    })
    return copyOptions
fxy060608's avatar
fxy060608 已提交
25 26
  }
}