sebastian13/magento2-module-bootstrap

从CDN添加Bootstrap库。

安装: 638

依赖者: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 3

语言:JavaScript

类型:magento2-module

4.3.1.1 2019-04-13 19:14 UTC

This package is auto-updated.

Last update: 2024-09-14 08:06:35 UTC


README

bootstrap version packagist version

添加Twitter Bootstrap库的javascript包和CSS,当CDN离线时有回退机制。

安装

  1. Composer
composer require sebastian13/magento2-module-bootstrap "4.3.1.*" --no-update
composer update
  1. 设置Magento
php bin/magento module:enable Sebastian13_Bootstrap
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

用法

将以下代码片段放入 Magento 主题的 Magento_Theme/template/html/header.phtml

<script type="text/javascript">
   require(['jquery.bootstrap']);
</script>