I am still learning composer and Yii2 and I am hitting a bump here.
I am trying to add Modernizr into the asset bundle.
Following the first step in guide, which says:
- Modify the composer.json file of your application or extension and list the package in the require entry. You should use bower-asset/PackageName (for Bower packages) or npm-asset/PackageName (for NPM packages) to refer to the library.
I added the following lines into composer.json:
"require": {
//.......
"bower-asset/modernizr": "*"
},
However, upon running composer update, it cannot find the bower package. Do I need to configure anything else?
Thanks.