This extension simplifies installation of ionCube extension in CMA project.
-
Install package.
npm i @scandipwa/magento-scripts-php-ioncube-extension # with yarn yarn add @scandipwa/magento-scripts-php-ioncube-extension
-
Enable extension in
cma.js
// cma.js const ioncube = require('@scandipwa/magento-scripts-php-ioncube-extension'); /** @type {import('@scandipwa/magento-scripts').CMAConfiguration} */ module.exports = { magento: { // ... magento config }, configuration: { php: { extensions: { ioncube // <- set extension here } } } };
-
Run
magento-scripts
npm start # with yarn yarn start
Demo setup available here