{} +} + +process.UNI_LIBRARIES = process.UNI_LIBRARIES || ['@dcloudio/uni-ui'] +process.UNI_LIBRARIES.forEach(libraryName => { + plugins.push([ + 'import', + { + 'libraryName': libraryName, + 'customName': (name) => { + return `${libraryName}/lib/${name}/${name}` + }...
uni-build` 或者是 `vue-cli-service uni-build --watch` 的命令替换为 `open-devtools`,例如以下实例 - -~~~json -{ - "scripts": { - "dev:mp-weixin": "cross-env NODE_ENV=development UNI_PLATFORM=mp-weixin open-devtools", - "build:mp-weixin": "cross-env NODE_ENV=production UNI_...
uni-build --watch", + "dev:quickapp-webview-union": "cross-env NODE_ENV=development UNI_PLATFORM=quickapp-webview-union vue-cli-service uni-build --watch", + "info": "node node_modules/@dcloudio/vue-cli-plugin-uni/commands/info.js", + "serve:quickapp-native": "node node_modules...
(process.env.UNI_PLATFORM !== 'h5') { + plugins.push('@babel/plugin-transform-runtime') +} + +const config = { + presets: [ + [ + '@vue/app', + { + modules: webpack.version[0] > 4 ? 'auto' : 'commonjs', + useBuiltIns: process.env.UNI_PLATFORM === 'h5' ? '...