sebastian13 / magento2-module-bootstrap
Adds Bootstrap library from CDN.
Package info
github.com/sebastian13/magento2-module-bootstrap
Language:JavaScript
Type:magento2-module
pkg:composer/sebastian13/magento2-module-bootstrap
4.3.1.1
2019-04-13 19:14 UTC
README
Add Twitter Bootstrap library's javascript bundle and CSS from CDN. There's also a fallback when CDN is offline.
Installation
- Composer:
composer require sebastian13/magento2-module-bootstrap "4.3.1.*" --no-update
composer update
- Setup Magento
php bin/magento module:enable Sebastian13_Bootstrap php bin/magento setup:upgrade php bin/magento setup:static-content:deploy
Usage
Put this snippet into a Magento Theme in Magento_Theme/template/html/header.phtml
<script type="text/javascript"> require(['jquery.bootstrap']); </script>