Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit 1fe0a97

Browse files
committed
Remove CDN part in installation
1 parent 41a0c5a commit 1fe0a97

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

‎src/Installation.js‎

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ import Typography from '@material-ui/core/Typography'
44
import{makeStyles}from'@material-ui/core/styles';
55
importHighlight,{defaultProps}from'prism-react-renderer';
66
importvsDarkfrom'prism-react-renderer/themes/vsDark';
7-
import{dependencies}from'../package.json';
87

98
constNPM_INSTALL_SCRIPTS=`
109
# Use npm
11-
$ npm install @ffmpeg/ffmpeg
10+
$ npm install @ffmpeg/ffmpeg @ffmpeg/core
1211
# Use yarn
13-
$ yarn add @ffmpeg/ffmpeg
12+
$ yarn add @ffmpeg/ffmpeg @ffmpeg/core
1413
`.trim('\n');
1514

1615
constNPM_CORE_INSTALL_SCRIPTS=`
@@ -20,14 +19,6 @@ $ npm install @ffmpeg/core
2019
$ yarn add @ffmpeg/core
2120
`.trim('\n');
2221

23-
constCDN_INSTALL_SCRIPTS=`
24-
<script src='https://unpkg.com/@ffmpeg/ffmpeg@${dependencies['@ffmpeg/ffmpeg'].slice(1)}/dist/ffmpeg.min.js'></script>
25-
<script>
26-
const{createFFmpeg } = FFmpeg;
27-
/* ... */
28-
</script>
29-
`.trim('\n');
30-
3122
constuseStyles=makeStyles({
3223
root: {
3324
margin: '48px 0px 48px 0px',
@@ -69,13 +60,6 @@ function Installation(){
6960
language="bash"
7061
code={NPM_INSTALL_SCRIPTS}
7162
/>
72-
<TypographyclassName={classes.para}variant="h6">
73-
Or use a CDN
74-
</Typography>
75-
<ReadOnlyEditor
76-
language="html"
77-
code={CDN_INSTALL_SCRIPTS}
78-
/>
7963
<TypographyclassName={classes.para}variant="h6">
8064
If you want to use it in node.js, you need to install @ffmpeg/core as well.
8165
</Typography>

0 commit comments

Comments
(0)