resolve admin / src with path join

This commit is contained in:
mfrachet 2021-10-01 09:47:42 +02:00
parent 2b6296dd17
commit 1c2a1c8d89

View File

@ -101,7 +101,7 @@ async function createPluginsJs(plugins, dest) {
* The regexp at line 105 aims to replace the windows backslashes by standard slash so that javascript can deal with them.
*/
const realPath = path
.join(path.relative(path.resolve(dest, 'admin/src'), pathToPlugin), 'strapi-admin.js')
.join(path.relative(path.resolve(dest, 'admin', 'src'), pathToPlugin), 'strapi-admin.js')
.replace(/\\/g, '/');
return {