mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
fix(vite): pass relative url as default base (#6637)
This commit is contained in:
parent
8a28c430b0
commit
385fa6037a
@ -21,6 +21,7 @@ export async function buildClient (ctx: ViteBuildContext) {
|
|||||||
|
|
||||||
const clientConfig: vite.InlineConfig = vite.mergeConfig(ctx.config, {
|
const clientConfig: vite.InlineConfig = vite.mergeConfig(ctx.config, {
|
||||||
entry: ctx.entry,
|
entry: ctx.entry,
|
||||||
|
base: './',
|
||||||
experimental: {
|
experimental: {
|
||||||
renderBuiltUrl: (filename, { type, hostType }) => {
|
renderBuiltUrl: (filename, { type, hostType }) => {
|
||||||
if (hostType !== 'js' || type === 'asset') {
|
if (hostType !== 'js' || type === 'asset') {
|
||||||
|
Loading…
Reference in New Issue
Block a user