Comments (4)
I confirm it works!
Didn't know the existence of the provide
directive in composer.
Thanks @simialbi
from yii2-bootstrap5.
Hi @antoniom
Yeah possible, but what if you want to install bootstrap4 and bootstrap5?
from yii2-bootstrap5.
Correct observation; it will break compatibility for those users.
However npm permits 2 version of the same package to be installed. For example:
npm i bootstrap@5
npm i bs4@npm:bootstrap@4
The latter creates an alias named as bs4 which can be found under node_modules/
directory.
Not sure if asset-packagist and fxp plugin can work that way with npm-asset
from yii2-bootstrap5.
The only reliable solution I know is to create a public package for bs3
("bower-asset/bootstrap":"^3.0.0"
) with a composer.json
with provide
set. Try the following: use in your root composer.json
in the require section raiffeisen/bootstrap
like this:
{
"require": {
"raiffeisen/bootstrap": "^3.4.0"
}
}
It should prevent the install of bower-asset/bootstrap 3.x
and allow the installation of bower-asset/bootstrap 5.x
If you do that, you have to override the configuration of the asset bundle in the yii app configuration:
[
'components' => [
'assetManager' => [
'bundles' => [
'yii\bootstrap\BootstrapAsset' => [
'sourcePath' => '@vendor/raiffeisen/bootstrap/dist'
]
]
]
]
]
from yii2-bootstrap5.
Related Issues (20)
- yii\bootstrap5\Breadcrumbs problem HOT 2
- kartik Gridview widget problem with bootstrap5 HOT 2
- Translation re-factoring HOT 1
- Dropdown clientEvents do not fire HOT 2
- Missing css files while including `yii\bootstrap5\BootstrapPluginAsset` HOT 4
- Version 2.0.4 not working \kartik\datecontrol\DateControl HOT 3
- ActiveField | Additional fields: checkbox HOT 9
- Navbar cannot accept collapseOptions = false
- Curious about card implementation
- ActiveForm | Incorrect radioList HTML/CSS
- Dropdown template is incorrect HOT 2
- Bootstrap5 Button is not registering clientEvents HOT 4
- invalid-feedback div breaks inline radio list
- Add brandImageOptions to NavBar.php to ensure accessibility.
- Whole Bootstrap directory is published into web/assets
- Replace `bower-asset/bootstrap` => `npm-asset/bootstrap`. HOT 1
- Missing package twbs/boostrap-icons in composer.json HOT 2
- Switch to NPM and drop Bower? HOT 1
- no error text when use inputTemplate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-bootstrap5.