A shim repositoy for modernizr as contao component.

1.0.1 2019-06-11 08:37 UTC

This package is not auto-updated.

Last update: 2023-01-21 01:50:13 UTC


README

A shim repositoy for Modernizr as contao component.

Please see modernizr-config.json for included features and options for this modernizr build.

Install

composer require heimrichhannot-contao-components/modernizr

Usage

Add following line to your config.php:

// Contao 4:
// src/Ressources/contao/config/config.php
$GLOBALS['TL_JAVASCRIPT']['modernizr'] = 'assets/modernizr/dist/modernizr-custom.js|static';

// Contao 3:
// config/config.php
$GLOBALS['TL_JAVASCRIPT']['modernizr'] = 'assets/components/modernizr/dist/modernizr-custom.js|static';

Internal

Download-Url for updating builds while keeping the config.