avil13 / vue-sweetalert2

A convenient wrapper for sweetalert2.
https://avil13.github.io/vue-sweetalert2/
656 stars 75 forks source link

SCSS not getting packed with webpack #106

Closed pistol-whip closed 4 years ago

pistol-whip commented 4 years ago

vue-sweetalert has been added via yarn add vue-sweetalert2 and successfully installed.

// main.js
import Vue from 'vue';
import VueSweetalert2 from 'vue-sweetalert2';

import "@/design/index.scss";

Vue.use(VueSweetalert2);
// index.scss
@import '~sweetalert2/src/variables';
$swal2-background: #2A3042;
@import '~sweetalert2/src/sweetalert2';

This is not getting compiled and resulting calls for an alert result in a white background.

avil13 commented 4 years ago

Hi. Not sure I understand the question, but this example will not help?

https://github.com/avil13/vue-sweetalert2-example/blob/3f312e3ea0c0b6536ae7e01139b7555ddbb78810/src/components/BlackAlert.vue#L95