提交 9d5a1692 编写于 作者: Q qiang

fix: uniModules static

上级 a6779d21
...@@ -238,14 +238,21 @@ if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) { ...@@ -238,14 +238,21 @@ if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
global.uniModules.forEach(module => { global.uniModules.forEach(module => {
const modules = 'uni_modules/' const modules = 'uni_modules/'
const assets = modules + module + '/' + assetsDir const assets = modules + module + '/' + assetsDir
const hybrid = modules + module + hybridDir const assetsPath = path.resolve(process.env.UNI_INPUT_DIR, assets)
array.push({ if (fs.existsSync(assetsPath)) {
from: path.resolve(process.env.UNI_INPUT_DIR, assets), array.push({
to: assets from: assetsPath,
}, { to: assets
from: path.resolve(process.env.UNI_INPUT_DIR, hybrid), })
to: hybrid }
}) const hybridHtml = modules + module + '/' + hybridDir
const hybridHtmlPath = path.resolve(process.env.UNI_INPUT_DIR, hybridHtml)
if (fs.existsSync(hybridHtmlPath)) {
array.push({
from: hybridHtmlPath,
to: hybridHtml
})
}
}) })
if (process.env.UNI_USING_NVUE_COMPILER) { if (process.env.UNI_USING_NVUE_COMPILER) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册