I want to set the public path to be a relative path.
for example, i want this:
<script src="assets/manifest.ec59716a348942b2b17f.js"></script>
<script src="assets/1.nuxt.bundle.0cf0418edc2e2a30a9d7.js"></script>
But it always generates to this:
<script src="/assets/manifest.ec59716a348942b2b17f.js"></script>
<script src="/assets/1.nuxt.bundle.0cf0418edc2e2a30a9d7.js"></script>
This is my nuxt.config.js:
build: {
publicPath: 'assets/'
}
I don't know why it always adds a "/" in the path.
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1225">#c1225</a>)</em></sub></div>