Jos*_*eph 8 javascript deployment production web-applications vite
使用Vite部署 Web 应用程序时,我无法部署 .js 文件。得到以下问题。
$ vite build
vite v2.8.6 building for production...
**\<script src="/index.js"\> in "/index.html" can't be bundled without type="module" attribute**
transforming...
Run Code Online (Sandbox Code Playgroud)
我无法在脚本中使用,type=module因为我不需要导入代码。如果我使用的话就会出现错误。
如果有人可以帮忙的话。
我尝试使用脚本type=module但出现错误。有什么方法可以在不使用 的情况下使用Vitetype=module进行部署吗?
| 归档时间: |
|
| 查看次数: |
2154 次 |
| 最近记录: |