mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[mobile] added checking of extra addons for build
This commit is contained in:
@ -231,8 +231,9 @@ module.exports = {
|
||||
}),
|
||||
new webpack.NormalModuleReplacementPlugin(
|
||||
/\.{2}\/lib\/patch/,
|
||||
resource => fs.existsSync(`../../../web-apps-mobile/${targetPatch}/patch.jsx`) ?
|
||||
resource.request = `../../../../../../web-apps-mobile/${targetPatch}/patch.jsx` : resource
|
||||
resource => (env == 'development' || /web-apps-mobile/.test(process.env.addon)) &&
|
||||
fs.existsSync(`../../../web-apps-mobile/${targetPatch}/patch.jsx`) ?
|
||||
resource.request = `../../../../../../web-apps-mobile/${targetPatch}/patch.jsx` : resource
|
||||
//resource => fs.existsSync(`${addonPath}/patch.jsx`) ?
|
||||
//resource.request = `../../../${addonPath}/patch.jsx` : resource
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user