2019-05-29 16:54:47 +02:00
|
|
|
// const pluginPkg = require('../../../../package.json');
|
|
|
|
// const pluginId = pluginPkg.name.replace(/^strapi-plugin-/i, '');
|
|
|
|
// const publicPath = `plugins/${pluginId}/`;
|
2017-11-11 22:14:05 +01:00
|
|
|
|
2019-05-29 16:54:47 +02:00
|
|
|
// __webpack_public_path__ = (() => {
|
|
|
|
// if (window.location.port === '4000') {
|
|
|
|
// return `${window.location.origin}/`;
|
|
|
|
// } else if (strapi.mode === 'backend') {
|
|
|
|
// return `${strapi.backendURL}/${publicPath}`;
|
|
|
|
// }
|
2018-01-15 17:45:22 +01:00
|
|
|
|
2019-05-29 16:54:47 +02:00
|
|
|
// return `${(strapi.remoteURL).replace(window.location.origin, '')}/${publicPath}`;
|
|
|
|
// })();
|