feat: add dcloudio/uni-template-news

This commit is contained in:
fxy060608 2019-01-09 11:53:08 +08:00
parent 5d6e63dca4
commit 4cadd8e02c
2 changed files with 14 additions and 1 deletions

View File

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

View File

@ -22,6 +22,10 @@ module.exports = [{
name: '看图模板',
value: 'dcloudio/uni-template-picture'
},
{
name: '新闻/资讯类模板',
value: 'dcloudio/uni-template-news'
},
{
name: '自定义模板',
value: 'custom'