Can we have a relative static folder with webpack?
I created a Vuejs app which uses Webpack as the build tool. And the structure is like this, I put all images/video under static but js/css under assets:
The app works fine as long as the app is distributed as root.
i.e
http://<domain>/index.html
But I'd like to distribute it under a sub folders and this same distribution code works without recompiling as it may be moved around by a different operation team.
i.e
http://<domain>/<app>/index.html
http://<domain>/<app>/index.html
http://<domain>/<app>/<app>/index.html
This messes up all the static resources. So I did some researches:
http://vuejs-templates.github.io/webpack/static.html
And play a bit with my setting assetsPublicPath, without being specific to a subfolder name, to ./ or "", but it didn't work.
assetsPublicPath: '/',
assetsSubDirectory: 'static'
Is there a way to pack the static folder so it works like a relative path or do I need to move all my resources to assets?
Thanks in advance.
