【发布时间】:2021-04-09 20:24:56
【问题描述】:
我在我的项目中使用 SweetAlert2。我将 VueJS 和 vue-cli-service 与 webpack 一起使用。
因为我想使用 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错误,当然主题也不显示。我似乎不明白它应该如何工作以及出了什么问题。
感谢您的帮助。
【问题讨论】:
标签: vue.js npm webpack webpack-dev-server sweetalert2