mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2025-04-06 05:43:08 +08:00
升级支持mp-baidu,mp-alipay,mp-weixin
This commit is contained in:
parent
6d55812f02
commit
9aa478db8e
19
generator.js
19
generator.js
@ -33,12 +33,29 @@ module.exports = (api, options, rootOptions) => {
|
||||
delete pkg.postcss
|
||||
delete pkg.browserslist
|
||||
return {
|
||||
scripts: {
|
||||
'serve': 'npm run dev:h5',
|
||||
'build': 'npm run build:h5',
|
||||
'dev:h5': 'cross-env NODE_ENV=development UNI_PLATFORM=h5 vue-cli-service uni-serve',
|
||||
'build:h5': 'cross-env NODE_ENV=production UNI_PLATFORM=h5 vue-cli-service uni-build',
|
||||
'dev:mp-weixin': 'cross-env NODE_ENV=production UNI_PLATFORM=mp-weixin vue-cli-service uni-build --watch',
|
||||
'dev:mp-baidu': 'cross-env NODE_ENV=production UNI_PLATFORM=mp-baidu vue-cli-service uni-build --watch',
|
||||
'dev:mp-alipay': 'cross-env NODE_ENV=production UNI_PLATFORM=mp-alipay vue-cli-service uni-build --watch',
|
||||
'build:mp-weixin': 'cross-env NODE_ENV=production UNI_PLATFORM=mp-weixin vue-cli-service uni-build',
|
||||
'build:mp-baidu': 'cross-env NODE_ENV=production UNI_PLATFORM=mp-baidu vue-cli-service uni-build',
|
||||
'build:mp-alipay': 'cross-env NODE_ENV=production UNI_PLATFORM=mp-alipay vue-cli-service uni-build'
|
||||
},
|
||||
dependencies: {
|
||||
'flyio': '^0.6.2',
|
||||
'vuex': '^3.0.1',
|
||||
'@dcloudio/uni-h5': '*'
|
||||
'megalo': '^0.5.4',
|
||||
'@dcloudio/uni-h5': '*',
|
||||
'@dcloudio/uni-mp-weixin': '*',
|
||||
'@dcloudio/uni-mp-baidu': '*',
|
||||
'@dcloudio/uni-mp-alipay': '*'
|
||||
},
|
||||
devDependencies: {
|
||||
'cross-env': '^5.2.0',
|
||||
'@dcloudio/vue-cli-plugin-uni': '*'
|
||||
},
|
||||
browserslist: [
|
||||
|
Loading…
x
Reference in New Issue
Block a user