Closed 3snail closed 6 years ago
yii set bower alias: Yii::setAlias('@bower', $this->_vendorPath . DIRECTORY_SEPARATOR . 'bower')
light\yii-swagger install swagger-ui in vendor/bower-asset
but light\yii-swagger\SwaggerUIAsset use sourcePath: @bower/swagger-ui/dist
so it can not found assets
See https://github.com/lichunqiang/yii2-swagger-demo/blob/master/composer.json#L50-L51 As fxp/asset plugin can custom the install path.
yii set bower alias: Yii::setAlias('@bower', $this->_vendorPath . DIRECTORY_SEPARATOR . 'bower')
light\yii-swagger install swagger-ui in vendor/bower-asset
but light\yii-swagger\SwaggerUIAsset use sourcePath: @bower/swagger-ui/dist
so it can not found assets