最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

shopware - Overidding a js plugin - Stack Overflow

programmeradmin5浏览0评论

when following the Shopware guide .html

const PluginManager = window.PluginManager
const Plugin = PluginManager.getPlugin('CookiePermission')
const PluginClass = Plugin.get('class')

export default class MyCookiePermission extends PluginClass {

}

it return the following error :

enter image description here.

worth mention that direct imports with path work. but i cant use them as the project will be loaded trough composer.

override the main plugin to be able to extend its functionality using the Plugin manager method

const PluginManager = window.PluginManager
const Plugin = PluginManager.getPlugin('CookiePermission')
const PluginClass = Plugin.get('class')
发布评论

评论列表(0)

  1. 暂无评论