Answer the question
In order to leave comments, you need to log in
How to force vue-cli to use relative paths for js and css during build?
In the project, it is necessary to make sure that links to js and css are not generated absolutely: , but relatively: .
This is a platform requirement that cannot be influenced in any way.
I studied the documentation, but did not find such information anywhere.
How to do it? src="/js/chunk-vendors.d8b43962.js"
src="./js/chunk-vendors.d8b43962.js"
Answer the question
In order to leave comments, you need to log in
Stumbled at random into vue.config.js
Not a very obvious thing. But it works.
publicPath: './'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question