mirror of
https://github.com/strapi/strapi.git
synced 2025-08-10 01:38:10 +00:00
14 lines
500 B
JavaScript
14 lines
500 B
JavaScript
// const pluginPkg = require('../../../../package.json');
|
|
// const pluginId = pluginPkg.name.replace(/^strapi-plugin-/i, '');
|
|
// const publicPath = `plugins/${pluginId}/`;
|
|
|
|
// __webpack_public_path__ = (() => {
|
|
// if (window.location.port === '4000') {
|
|
// return `${window.location.origin}/`;
|
|
// } else if (strapi.mode === 'backend') {
|
|
// return `${strapi.backendURL}/${publicPath}`;
|
|
// }
|
|
|
|
// return `${(strapi.remoteURL).replace(window.location.origin, '')}/${publicPath}`;
|
|
// })();
|