wip: fix cssVars option warning check
This commit is contained in:
parent
0e86cbfcf2
commit
a9424354b0
@ -171,7 +171,7 @@ function doCompileTemplate({
|
|||||||
nodeTransforms = [transformAssetUrl, transformSrcset]
|
nodeTransforms = [transformAssetUrl, transformSrcset]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ssr && !compilerOptions.ssrCssVars) {
|
if (ssr && compilerOptions.ssrCssVars == null) {
|
||||||
warnOnce(
|
warnOnce(
|
||||||
`compileTemplate is called with \`ssr: true\` but no ` +
|
`compileTemplate is called with \`ssr: true\` but no ` +
|
||||||
`corresponding \`ssrCssVars\` option. The value can be generated by ` +
|
`corresponding \`ssrCssVars\` option. The value can be generated by ` +
|
||||||
|
Loading…
Reference in New Issue
Block a user