Skip to content

Commit 947e5dd

Browse files
authored
Merge pull request #1915 from joaolucasl/npmcdn-to-unpkg
Updated `npmcdn.com` links to `unpkg.com`
2 parents 1483459 + 772221b commit 947e5dd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ npm install --save redux
4747
```
4848

4949
This assumes you are using [npm](https://www.npmjs.com/) as your package manager.
50-
If you don't, you can [access these files on npmcdn](https://npmcdn.com/redux/), download them, or point your package manager to them.
50+
If you don't, you can [access these files on unpkg](https://unpkg.com/redux/), download them, or point your package manager to them.
5151

5252
Most commonly people consume Redux as a collection of [CommonJS](http://webpack.github.io/docs/commonjs.html) modules. These modules are what you get when you import `redux` in a [Webpack](http://webpack.github.io), [Browserify](http://browserify.org/), or a Node environment. If you like to live on the edge and use [Rollup](http://rollupjs.org), we support that as well.
5353

54-
If you don't use a module bundler, it's also fine. The `redux` npm package includes precompiled production and development [UMD](https://github.com/umdjs/umd) builds in the [`dist` folder](https://npmcdn.com/redux/dist/). They can be used directly without a bundler and are thus compatible with many popular JavaScript module loaders and environments. For example, you can drop a UMD build as a [`<script>` tag](https://npmcdn.com/redux/dist/redux.js) on the page, or [tell Bower to install it](https://github.com/reactjs/redux/pull/1181#issuecomment-167361975). The UMD builds make Redux available as a `window.Redux` global variable.
54+
If you don't use a module bundler, it's also fine. The `redux` npm package includes precompiled production and development [UMD](https://github.com/umdjs/umd) builds in the [`dist` folder](https://unpkg.com/redux/dist/). They can be used directly without a bundler and are thus compatible with many popular JavaScript module loaders and environments. For example, you can drop a UMD build as a [`<script>` tag](https://unpkg.com/redux/dist/redux.js) on the page, or [tell Bower to install it](https://github.com/reactjs/redux/pull/1181#issuecomment-167361975). The UMD builds make Redux available as a `window.Redux` global variable.
5555

5656
The Redux source code is written in ES2015 but we precompile both CommonJS and UMD builds to ES5 so they work in [any modern browser](http://caniuse.com/#feat=es5). You don't need to use Babel or a module bundler to [get started with Redux](https://github.com/reactjs/redux/blob/master/examples/counter-vanilla/index.html).
5757

Diff for: docs/basics/UsageWithReact.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ We will use React to build our simple todo app.
1414
npm install --save react-redux
1515
```
1616

17-
If you don't use npm, you may grab the latest UMD build from npmcdn (either a [development](https://npmcdn.com/react-redux@latest/dist/react-redux.js) or a [production](https://npmcdn.com/react-redux@latest/dist/react-redux.min.js) build). The UMD build exports a global called `window.ReactRedux` if you add it to your page via a `<script>` tag.
17+
If you don't use npm, you may grab the latest UMD build from unpkg (either a [development](https://unpkg.com/react-redux@latest/dist/react-redux.js) or a [production](https://unpkg.com/react-redux@latest/dist/react-redux.min.js) build). The UMD build exports a global called `window.ReactRedux` if you add it to your page via a `<script>` tag.
1818

1919
## Presentational and Container Components
2020

Diff for: examples/counter-vanilla/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Redux basic example</title>
5-
<script src="https://npmcdn.com/redux@latest/dist/redux.min.js"></script>
5+
<script src="https://unpkg.com/redux@latest/dist/redux.min.js"></script>
66
</head>
77
<body>
88
<div>

0 commit comments

Comments
 (0)