How to use Ionic framework v5

I wrote a webapp back in 2020 using ionic framework. It imports the components/css via CDN. But that CDN now references v7 and my app looks really shitty. I don’t want to have to do a full update to use the newer version of ionic. I just want the app to work as it was designed.

Is there some way to install ionic v5 (a static CDN would be even better)?

Thanks!

You can specify the version like this:

https://cdn.jsdelivr.net/npm/@ionic/core@v5/dist/ionic/ionic.js
1 Like

can you show how to use components and css via CDN?
It could be useful!

thanks

I would assume this (pulled from the docs and added the version).

<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core@v5/dist/ionic/ionic.esm.js"></script>
<script nomodule src="https://cdn.jsdelivr.net/npm/@ionic/core@v5/dist/ionic/ionic.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core@v5/css/ionic.bundle.css" />
1 Like