lichunqiang / yii2-swagger-demo

The showcase for yii2-swagger
Other
60 stars 20 forks source link

bower assets #2

Closed 3snail closed 6 years ago

3snail commented 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

lichunqiang commented 6 years ago

See https://github.com/lichunqiang/yii2-swagger-demo/blob/master/composer.json#L50-L51 As fxp/asset plugin can custom the install path.