laravel-vue-cli icon indicating copy to clipboard operation
laravel-vue-cli copied to clipboard

assetsDir option not working with non-default indexPath

Open tschmidiger opened this issue 4 years ago • 0 comments

Thanks for your guide! However, if one intends to use the assetsDir option, the automatically injected assets will not be referenced correctly in the app.blade.php. If the indexPath is different from index.html (e.g. app.blade.php) the assetsDir option is not taken into account. As a workaround in order to use the assetsDir option I set the indexPath to index.html and moved the index.html after the build to app.blade.php into the target directory (resources/views/app.blade.php).

The handling of non-default indexPaths happens here: node_modules/@vue/cli-service/lib/config/app.js:107

tschmidiger avatar Feb 22 '21 13:02 tschmidiger