mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2025-04-27 07:20:11 +08:00
fix: 完善 manifest.json name 替换逻辑
This commit is contained in:
parent
86351a9f73
commit
5e3a961182
@ -18,7 +18,7 @@ async function generate (dir, files, base = '', rootOptions = {}) {
|
||||
} else {
|
||||
let content = fs.readFileSync(sourcePath, 'utf-8')
|
||||
if (path.basename(filename) === 'manifest.json') {
|
||||
content = content.replace('{{name}}', rootOptions.projectName)
|
||||
content = content.replace('{{name}}', rootOptions.projectName || '')
|
||||
}
|
||||
if (filename.charAt(0) === '_' && filename.charAt(1) !== '_') {
|
||||
files[`.${filename.slice(1)}`] = content
|
||||
|
Loading…
x
Reference in New Issue
Block a user