Skip to content

Commit ff8643b

Browse files
committed
Use unpkg to get latest version in the setup example
1 parent 63b5834 commit ff8643b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/web-support/rails.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Or, if you use `importmaps', you can:
2525
1. Download to local vendor directory (optional but recommended)
2626

2727
```bash
28-
$ wget -O vendor/javascript/apexcharts.esm.js https://ga.jspm.io/npm:apexcharts@3.54.0/dist/apexcharts.esm.js
28+
$ wget -O vendor/javascript/apexcharts.esm.js https://unpkg.com/apexcharts@latest/dist/apexcharts.esm.js
2929
```
3030

3131
2. Pin "apexcharts" in `config/importmap.rb` to local esm file if you did No. 1:
@@ -37,7 +37,7 @@ pin "apexcharts", to: "apexcharts.esm.js"
3737
or, to CDN URL directly if you didn't do No. 1:
3838

3939
```ruby
40-
pin "apexcharts", to: "https://ga.jspm.io/npm:apexcharts@3.54.0/dist/apexcharts.esm.js"
40+
pin "apexcharts", to: "https://unpkg.com/apexcharts@latest/dist/apexcharts.esm.js"
4141
```
4242

4343
3. Import and assign to window in `app/javascript/application.js`

0 commit comments

Comments
 (0)