Static in 'public' dir are not serve
swasher opened this issue · 0 comments
swasher commented
You setup assume static dir is '/app/dist/static'. npm build
generate this dir as ordered by vue.config.js
module.exports = {
assetsDir: 'static',
}
and flask setting up static directory as
app = Flask(__name__, static_folder='../dist/static')
But static files from public
dir is one level higher - in /app/dist
. So favicon.ico
and other static from public
are inaccessible.
I'm trying build my own template (inspired by yours). I trying remove static
from static path. And I am faced with the fact that if set assetDir: ''
(this is default), and flask static_folder='dist'
(my app.py lies in root), then nothing works at all. All static include js become inaccessible.