mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-28 16:42:04 +00:00
fix(vite): enable css sourcemaps in dev based on sourcemap
(#18446)
This commit is contained in:
parent
5ede291a14
commit
022c95269e
@ -30,6 +30,9 @@ export async function buildClient (ctx: ViteBuildContext) {
|
|||||||
return { runtime: `globalThis.__publicAssetsURL(${JSON.stringify(filename)})` }
|
return { runtime: `globalThis.__publicAssetsURL(${JSON.stringify(filename)})` }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
css: {
|
||||||
|
devSourcemap: ctx.nuxt.options.sourcemap.client
|
||||||
|
},
|
||||||
define: {
|
define: {
|
||||||
'process.server': false,
|
'process.server': false,
|
||||||
'process.client': true,
|
'process.client': true,
|
||||||
|
@ -34,6 +34,9 @@ export async function buildServer (ctx: ViteBuildContext) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
css: {
|
||||||
|
devSourcemap: ctx.nuxt.options.sourcemap.server
|
||||||
|
},
|
||||||
define: {
|
define: {
|
||||||
'process.server': true,
|
'process.server': true,
|
||||||
'process.client': false,
|
'process.client': false,
|
||||||
|
Loading…
Reference in New Issue
Block a user