Download Latest Version v2.0.0 source code.tar.gz (1.4 MB)
Email in envelope

Get an email when there's a new version of SweetModal

Home / v2.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2017-10-22 1.4 kB
v2.0.0 source code.tar.gz 2017-10-22 1.4 MB
v2.0.0 source code.zip 2017-10-22 1.4 MB
Totals: 3 Items   2.7 MB 0

Kinda big release, everyone! We're bumping up the major version due to a break with current installations using babel-preset-es2015. Please read this changelog carefully!

Features + Bugfixes

  • Support disabling mobile fullscreen (#39) by providing :enable-fullscreen-mobile="false"
  • Support manually setting the width (#37) by providing width, i.e. :width="200" or width="85%"
  • Support global installation js import SweetModal from 'sweet-modal-vue/src/plugin.js' Vue.use(SweetModal);
  • Fix a name-clash with Laravel and SweetAlert (#19)
  • Fix a lot of import and build errors (#36, [#34], [#33], [#29], [#19])

Technical Changes

  • Upgrade to Webpack 3 This shouldn't affect you other than having to run another npm i, though.

  • Switch to babel-preset-env This removes the need to install any babel presets yourself. This also got rid of our .babelrc file so it doesn't clash with yours.

  • Downgrade css-loader The current versions are pretty slow while not bringing any relevant new features.

  • Support module- and minified-based loading package.json now includes module and main.

Breaking Changes

  • SweetModal is no longer compatible with UglifyJS. To use SweetModal in your project you have to use any other ES6-compatible minifier, for example babel-minify.
Source: README.md, updated 2017-10-22