change jspm_packages location

2019-03-25 22:41发布

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条回答
姐就是有狂的资本
2楼-- · 2019-03-25 22:47

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

"jspm": {
  "directories": {
    "packages": "new/path/to/jspm_packages"
  }
}
查看更多
登录 后发表回答