getImportDirectory example



    /** * Helper function which compiles the passed less definition. * The shop parameter is required to build the shop url for the files. * * @throws Enlight_Event_Exception */
    private function compileLessDefinition(Shop $shop, LessDefinition $definition): void
    {
        // Set unique import directory for less @import commands         if ($definition->getImportDirectory()) {
            $this->compiler->setImportDirectories(
                [
                    $definition->getImportDirectory(),
                ]
            );
        }

        // Allows to add own configurations for the current compile step.         if ($definition->getConfig()) {
            $this->compiler->setVariables($definition->getConfig());
        }

        
Home | Imprint | This part of the site doesn't use cookies.