If I add SweetAlert to my project via NPM package (npm install sweetalert --save-dev and import swal from 'sweetalert';) I got "Not valid!" message error (see the related issue for description), so I have to import the full minified Js file with some like import '../vendor/sweetalert.min.js';.
If I add SweetAlert to my project via NPM package (
npm install sweetalert --save-dev
andimport swal from 'sweetalert';
) I got "Not valid!" message error (see the related issue for description), so I have to import the full minified Js file with some likeimport '../vendor/sweetalert.min.js';
.I'm using Gulp as TaskRunner and webpack for Js.