-->

change jspm_packages location

2019-03-25 22:37发布

问题:

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"
  }
}