DEV Community

Discussion on: Javascript File Concatenation

Collapse
 
darksmile92 profile image
Robin Kretzschmar

Just took a quick look at it and the Readme has a line to include a minified version:
SweetAlert2 Repo

The important part is the URL of the CDN file:

Installation

...

<script src="https://cdn.jsdelivr.net/npm/sweetalert2@8"></script>

...

<script src="sweetalert2/dist/sweetalert2.all.min.js"></script>

...

<script src="sweetalert2/dist/sweetalert2.min.js"></script>
<link rel="stylesheet" href="sweetalert2/dist/sweetalert2.min.css">

So you can download the file from there and have your combined file locally without any effort.

Collapse
 
scottishross profile image
Ross Henderson

Holy... I completely missed that! Cheers!

Collapse
 
darksmile92 profile image
Robin Kretzschmar

You're welcome :)