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

Have a function that returns additional cdn config #22

Open
mastilver opened this issue Jun 5, 2019 · 0 comments
Open

Have a function that returns additional cdn config #22

mastilver opened this issue Jun 5, 2019 · 0 comments

Comments

@mastilver
Copy link
Owner

getCdnConfigs(['react', 'react-dom'])

would returns:

{
    "react": {
    "var": "React",
    "versions": {
      ">= 0.11.0 <= 16.0.0-alpha.6": {
        "development": "https://unpkg.com/react@[version]/dist/react.js",
        "production": "https://unpkg.com/react@[version]/dist/react.min.js"
      },
      ">= 16.0.0-alpha.7 < 16.6.2 || > 16.6.2": {
        "development": "https://unpkg.com/react@[version]/umd/react.development.js",
        "production": "https://unpkg.com/react@[version]/umd/react.production.min.js"
      }
    }
  },
  "react-dom": {
    "var": "ReactDOM",
    "versions": {
      ">= 0.14.0 <= 16.0.0-alpha.6": {
        "development": "https://unpkg.com/react-dom@[version]/dist/react-dom.js",
        "production": "https://unpkg.com/react-dom@[version]/dist/react-dom.min.js"
      },
      ">= 16.0.0-alpha.7 < 16.6.2 || > 16.6.2": {
        "development": "https://unpkg.com/react-dom@[version]/umd/react-dom.development.js",
        "production": "https://unpkg.com/react-dom@[version]/umd/react-dom.production.min.js"
      }
    }
  }
}

so user can make PRs more easily

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

No branches or pull requests

1 participant