change jspm_packages location

我怕爱的太早我们不能终老 提交于 2019-12-04 19:35:09

问题


Is there a .bowerrc equivalent in jspm? When I run jspm install, I'd like jspm to install the packages to client/jspm_packages folder.

How can I configure jspm to change location of jspm_packages folder?

Thanks


回答1:


I found it. In your package.json, add the path into packages inside directories.

"jspm": {
  "directories": {
    "packages": "new/path/to/jspm_packages"
  }
}


来源:https://stackoverflow.com/questions/29902646/change-jspm-packages-location

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!