delete pkg.postcss,pkg.browserslist

This commit is contained in:
fxy060608 2018-11-19 16:20:54 +08:00
parent bfa5fb69bf
commit 24f3dc0cac

View File

@ -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 => {