PHP code example of webpix-io / module-optimizer

1. Go to this page and download the library: Download webpix-io/module-optimizer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

webpix-io / module-optimizer example snippets

bash
composer nto module:enable Webpix_Optimizer
php bin/magento setup:upgrade
php bin/magento cache:flush
bash
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
bash
php bin/magento cache:flush
bash
php bin/magento config:set webpix_optimizer/general/enabled 0
php bin/magento cache:flush
bash
php bin/magento config:set webpix_optimizer/general/enabled 1
php bin/magento cache:flush