Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在进行 npm run build 时,
从 UglifyJs Unexpected token: operator (>) 在 vendor.97ddeaba56b47c113f33.bundle.js 中得到这个错误 ERROR
我认为sweetalert.js文件正在破坏您的构建。
sweetalert.js
您可以在资产中添加sweetalert.js文件并提供其链接index.html
index.html
或者您可以使用 sweetalert.js文件的CDN 链接index.html
像这样 :<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>