-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
umd.js -> standalone.js, fixed the browser bundle in general and added a note on it to the README
- Loading branch information
Showing
3 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -429,15 +429,18 @@ ReactDOM.render(<Router routes={routes} outerComponent={App} />, root); | |
You can also use consume Buttermilk from a CDN like unpkg: | ||
|
||
``` | ||
https://unpkg.com/[email protected].0/dist/umd.js | ||
https://unpkg.com/[email protected].0/dist/umd.min.js | ||
https://unpkg.com/[email protected].1/dist/standalone.js | ||
https://unpkg.com/[email protected].1/dist/standalone.min.js | ||
``` | ||
|
||
The exports will be accessible at `window.Buttermilk`. Note that this requires `react >= 16.3` (`window.React`) and `prop-types` (`window.PropTypes`) to also be accessible in the `window` scope. | ||
|
||
Both the minified and development versions ship with source maps for ease of debugging. | ||
|
||
## more examples | ||
|
||
- holistic example + animated route transitions: <https://codesandbox.io/s/30llnkwj5q> | ||
- browser-only without a bundler: <https://codesandbox.io/s/p96j9159lq> | ||
|
||
## goals | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters