我正在使用以下代码为Flask的Vue.js单页应用程序前端提供静态文件入口点
static
--dist
index.html
app.6ada13ac.js
----js
d731.6ba6799b.js
----css
在index.html中,我有以下内容:
<html>
<link href=/static/dist/css/chunk-217f.f59e8a99.css rel=prefetch>
...
<script src=/static/dist/js/app.654ec03e.js></script></body></html>
应用程序可以访问index.html中引用的文件,但是当app.654ec03e.js尝试访问文件时,例如
function u(n){return d.p+"js/"+({}[n]||n)+"."+{8517:"dc0887a0" ...
我收到404错误。如何为vuejs 2.5指定webpack / vue.config.js以便能够在static / dist下找到文件?