t4t5 / sweetalert

A beautiful replacement for JavaScript's "alert"
https://sweetalert.js.org
MIT License
22.4k stars 2.84k forks source link

Failed to download css #811

Closed pintilies closed 6 years ago

pintilies commented 6 years ago

I don't know if it is an issue, but after installing it, adding the 3 files in the main page(SweetAlert.min.js, sweet-alert.js, sweet-alert.css) there are a couple of exception in the browser developer mode, cannot load the css files due tu missing ".css" extention in sweetalert.css:

@import './css/icons'; @import './css/text'; etc..

If I add ".css" extension then there are loaded succesfully? Can this problem be fixed?

Thanks.

t4t5 commented 6 years ago

I think you might be using an old version if the library.

Since 2.0, you don't need to import the CSS manually. Simply import the JS file and the CSS will automatically be there too. :)

See: https://sweetalert.js.org/guides/