mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2025-04-06 13:53:07 +08:00
delete pkg.postcss,pkg.browserslist
This commit is contained in:
parent
bfa5fb69bf
commit
24f3dc0cac
32
generator.js
32
generator.js
@ -32,20 +32,24 @@ module.exports = (api, options, rootOptions) => {
|
||||
|
||||
api.render(async function(files) {
|
||||
|
||||
api.extendPackage({
|
||||
dependencies: {
|
||||
'flyio': '^0.6.2',
|
||||
'vuex': '^3.0.1',
|
||||
'@dcloudio/uni-h5': '*'
|
||||
},
|
||||
devDependencies: {
|
||||
'@dcloudio/vue-cli-plugin-uni': '*'
|
||||
},
|
||||
browserslist: [
|
||||
'last 3 versions',
|
||||
'Android >= 4.4',
|
||||
'ios >= 8'
|
||||
]
|
||||
api.extendPackage(pkg => {
|
||||
delete pkg.postcss
|
||||
delete pkg.browserslist
|
||||
return {
|
||||
dependencies: {
|
||||
'flyio': '^0.6.2',
|
||||
'vuex': '^3.0.1',
|
||||
'@dcloudio/uni-h5': '*'
|
||||
},
|
||||
devDependencies: {
|
||||
'@dcloudio/vue-cli-plugin-uni': '*'
|
||||
},
|
||||
browserslist: [
|
||||
'last 3 versions',
|
||||
'Android >= 4.4',
|
||||
'ios >= 8'
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
Object.keys(files).forEach(name => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user