Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not macthed asset in bower and npm #3

Closed
krissss opened this issue Jul 3, 2020 · 2 comments
Closed

Not macthed asset in bower and npm #3

krissss opened this issue Jul 3, 2020 · 2 comments

Comments

@krissss
Copy link
Owner

krissss commented Jul 3, 2020

swagger-ui in bower is match swagger-ui-dist in npm.

swagger-ui in npm is another package.

so bower-asset/swagger-ui is equal npm-asset/swagger-ui-dist

@krissss
Copy link
Owner Author

krissss commented Jul 3, 2020

solve by step:

  1. composer.json add config
"config": {
  "foxy-yii2-convert": {
    "target-map": {
      "bower-asset/swagger-ui": "npm-asset/swagger-ui-dist"
    }
  }
}
  1. reinstall composer package

Remove first if already installed.

You will see node_modules\swagger-ui-dist in your project

  1. Change alias in your project if used
'aliases' => [
  '@bower/swagger-ui/dist' => '@npm/swagger-ui-dist'
],

@krissss krissss closed this as completed Jul 3, 2020
@krissss
Copy link
Owner Author

krissss commented Mar 14, 2021

yiisoft/yii2-jui:

"foxy-yii2-convert": {
  "target-map": {
    "bower-asset/jquery-ui": "npm-asset/components-jqueryui"
  }
},
'aliases' => [
  '@bower/jquery-ui' => '@npm/components-jqueryui'
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant