Download the PHP package wubinworks/module-require-css without Composer
On this page you can find all versions of the php package wubinworks/module-require-css. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wubinworks/module-require-css
More information about wubinworks/module-require-css
Files in wubinworks/module-require-css
Download wubinworks/module-require-css
More information about wubinworks/module-require-css
Files in wubinworks/module-require-css
Vendor wubinworks
Package module-require-css
Short Description An extremely simple module that enables Magento 2's ability to use Require Css.
License OSL-3.0
Package module-require-css
Short Description An extremely simple module that enables Magento 2's ability to use Require Css.
License OSL-3.0
Please rate this library. Is it a good library?
Informations about the package module-require-css
Introduction
An extremely simple module that enables Magento 2's ability to use Require Css.\ (This module is designed as a dependency for making other modules.)
- Very useful when you need to load css in
.phtml
. - Dynamically load css.
- Use inside
<head>
(eg: load different external css for different stores).
Usage
How it works
The core part, which is a RequireJS Plugin, is taken from here. When the dependency require-css!css/styles
is required, it will inject a link
element that contains stylesheet into <head>
.
Best used with
Requirements
Magento 2
Installation
composer require wubinworks/module-require-css
\
Don't forget to run php bin/magento setup:upgrade
All versions of module-require-css with dependencies
PHP Build Version
Package Version
Requires
magento/magento2-base Version
*
magento/module-backend Version *
magento/module-theme Version *
magento/module-backend Version *
magento/module-theme Version *
The package wubinworks/module-require-css contains the following files
Loading the files please wait ....