-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Description
What problem does this feature solve?
Setting a custom path for where static files are requested with index.html
static file.
It's time to deploy my migrated vue cli 2 to vue cli 3 SPA. I want to put the static files in ../../static
but also have the assets served up from href="/static/js/app.a7as86ad8.js"
etc. See https://forum.vuejs.org/t/baseurl-at-but-files-within-index-html-to-be-served-at-static/45777/4
On vue cli 2, I had:
build: {
...
// Paths
assetsRoot: path.resolve(__dirname, '../../../'),
assetsSubDirectory: 'static',
assetsPublicPath: '/',
so my SPA lives at app.example.com but within index.html
files were served at /static/js
and /static/css
etc.
What does the proposed API look like?
Allow control over asset paths used in index.html in vue.config.js
Metadata
Metadata
Assignees
Labels
No labels