Skip to content

Commit

Permalink
includeCss options
Browse files Browse the repository at this point in the history
  • Loading branch information
avil13 committed May 14, 2019
1 parent 33b646c commit 053bfe4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion example/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import App from './App.vue';

import VueSweetalert2 from './vue-sweetalert2';

Vue.use(VueSweetalert2);
Vue.use(VueSweetalert2, { includeCss: false });

new Vue({
el: '#app',
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-sweetalert2",
"version": "2.0.1",
"version": "2.0.4",
"description": "Simple Vue sweetalert2 package",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -16,6 +16,11 @@
"prompt",
"ssr"
],
"files": [
"src",
"nuxt",
"dist"
],
"author": "Aleksey Pivkin @avil13",
"license": "MIT",
"dependencies": {
Expand All @@ -36,10 +41,6 @@
"typescript": "^3.4.5",
"vue": "^2.6.10"
},
"files": [
"src",
"nuxt"
],
"ava": {
"babel": "inherit",
"require": [
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// @ts-check
import Vue from 'vue';

import Swal, { SweetAlertOptions } from 'sweetalert2/src/sweetalert2.js';
import { SweetAlertOptions } from 'sweetalert2';
import Swal from 'sweetalert2/dist/sweetalert2.min.js';

type VueSwalInstance = typeof Swal.fire;

Expand Down

0 comments on commit 053bfe4

Please sign in to comment.