Ist es möglich Javascript Plugins in der Storefront zu erweitern / überschreiben. Es geht nämlich um die Offcanvas Funktionalitäten.
Steht in den Docs: https://docs.shopware.com/en/shopware-platform-dev-en/how-to/extend-core-js-storefront-plugin?category=shopware-platform-dev-en/how-to
hallo zusammen.
Ich versuche grade ein JS Plugin zu extenden wie hier:
https://docs.shopware.com/en/shopware-platform-dev-en/how-to/extend-core-js-storefront-plugin?category=shopware-platform-dev-en/how-to
nur bekomme ich leider Webpack Kompilierungsprobleme wenn ich einen build starte (./psh.phar storefront:build).
auch mit dem Plugin von oben:
GitHub - shopware/swag-docs-extend-js-plugin
FEHLERMELDUNG:
ERROR in /development/custom/plugins/swag-docs-extend-js-plugin-master/src/Resources/app/storefront/src/my-cookie-permission/my-cookie-permission.plugin.js
Module not found: Error: Can’t resolve ‘src/plugin/cookie-permission/cookie-permission.plugin’ in ‘/development/custom/plugins/swag-docs-extend-js-plugin-master/src/Resources/app/storefront/src/my-cookie-permission’
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! sw-next-storefront@1.0.0 production: NODE_ENV=production webpack --config webpack.config.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the sw-next-storefront@1.0.0 production script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Execution aborted, a subcommand failed!
Jemand ne Idee?
@thom
ich glaube, statt
from 'src/plugin/cookie-permission/cookie-permission.plugin';
sollte es
from 'src/plugin/cookie/cookie-permission.plugin';
sein. Die Struktur hat sich geändert und scheinbar ist die Dokumentation noch nicht auf dem neusten Stand.
Viele Grüße
Danke, ja ![]()
Wie hat denn der Pfad auszusehen, wenn man ein Plugin aus dem Shopware Store erweitern möchte?