mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2025-04-05 21:41:53 +08:00
feat: add dcloudio/uni-template-news
This commit is contained in:
parent
5d6e63dca4
commit
4cadd8e02c
@ -44,6 +44,15 @@ module.exports = (api, options, rootOptions) => {
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (options.template === 'dcloudio/uni-template-news') {
|
||||
api.extendPackage(pkg => {
|
||||
return {
|
||||
devDependencies: {
|
||||
'node-sass': '^4.11.0',
|
||||
'sass-loader': '^7.1.0'
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
api.render(async function (files) {
|
||||
|
@ -22,6 +22,10 @@ module.exports = [{
|
||||
name: '看图模板',
|
||||
value: 'dcloudio/uni-template-picture'
|
||||
},
|
||||
{
|
||||
name: '新闻/资讯类模板',
|
||||
value: 'dcloudio/uni-template-news'
|
||||
},
|
||||
{
|
||||
name: '自定义模板',
|
||||
value: 'custom'
|
||||
|
Loading…
x
Reference in New Issue
Block a user