mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2025-04-30 00:40:13 +08:00
fix: hello-uniapp 模板增加 sass 插件
This commit is contained in:
parent
2a877097dc
commit
a8054cd44d
@ -33,6 +33,10 @@ async function generate (dir, files, base = '', rootOptions = {}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports = (api, options, rootOptions) => {
|
module.exports = (api, options, rootOptions) => {
|
||||||
|
const templateWithSass = [
|
||||||
|
'dcloudio/hello-uniapp',
|
||||||
|
'dcloudio/uni-template-news'
|
||||||
|
]
|
||||||
api.extendPackage(pkg => {
|
api.extendPackage(pkg => {
|
||||||
return {
|
return {
|
||||||
dependencies: {
|
dependencies: {
|
||||||
@ -62,7 +66,7 @@ module.exports = (api, options, rootOptions) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else if (options.template === 'dcloudio/uni-template-news') {
|
} else if (templateWithSass.includes(options.template)) {
|
||||||
api.extendPackage(pkg => {
|
api.extendPackage(pkg => {
|
||||||
return {
|
return {
|
||||||
devDependencies: {
|
devDependencies: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user