PHP code example of maximaster / bitrix-webpack-assets

1. Go to this page and download the library: Download maximaster/bitrix-webpack-assets 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/ */

    

maximaster / bitrix-webpack-assets example snippets



use Maximaster\BitrixWebpackAssets\Resource;

$resources = Resources::fromJsonFile("{$container->get('documentRoot')}/res/manifest.json");

$resources->useAllOf(SITE_TEMPLATE_ID . 'Template');

$resources->useAllFor($this);