mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2026-04-22 00:00:04 +08:00
fix: hello-uniapp 模板增加 sass 插件
This commit is contained in:
+5
-1
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user