我在我的项目中使用SweetAlert2。我和webpack一起使用VueJS和vue-cli-service。
由于我想使用boostrap 4主题,所以我遵循了以下说明:
npm i npm install @sweetalert2/theme-bootstrap-4我在index.html中包含了这个css
<link rel="stylesheet" href="@sweetalert2/themes/bootstrap-4/bootstrap-4.css">但它只会导致404错误,当然,主题不会显示。我似乎不明白它是如何工作的,以及哪里出了问题。
谢谢你的帮助。
发布于 2021-01-05 00:30:16
根据您需要使用的README of @sweetalert2/theme-bootstrap-4
<link rel="stylesheet" href="@sweetalert2/theme-bootstrap-4/bootstrap-4.css">https://stackoverflow.com/questions/65555978
复制相似问题