提交 1fae701b 编写于 作者: fxy060608's avatar fxy060608

wip(app): nvue

上级 6e4c342f
import fs from 'fs'
import path from 'path'
import { isAppNativeTag, isAppNVueNativeTag } from '@dcloudio/uni-shared'
import { compileI18nJsonStr } from '@dcloudio/uni-i18n'
import {
......@@ -32,6 +34,11 @@ export function uniOptions(): UniVitePlugin['uni'] {
return compileI18nJsonStr(source.toString(), options)
},
})
const debugFilename = '__nvue_debug__'
const debugFilepath = path.resolve(inputDir, debugFilename)
if (fs.existsSync(debugFilepath)) {
fs.copyFileSync(debugFilepath, path.resolve(outputDir, debugFilename))
}
}
return {
assets: ['hybrid/html/**/*', 'uni_modules/*/hybrid/html/**/*'],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册