We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2eed8e6 commit 2cdb69fCopy full SHA for 2cdb69f
components/_util/cssinjs/hooks/useCacheToken.tsx
@@ -8,9 +8,13 @@ import { ref, computed } from 'vue';
8
9
const EMPTY_OVERRIDE = {};
10
11
+const isProduction = process.env.NODE_ENV === 'production';
12
+// nuxt generate when NODE_ENV is prerender
13
+const isPrerender = process.env.NODE_ENV === 'prerender';
14
+
15
// Generate different prefix to make user selector break in production env.
16
// This helps developer not to do style override directly on the hash id.
-const hashPrefix = process.env.NODE_ENV !== 'production' ? 'css-dev-only-do-not-override' : 'css';
17
+const hashPrefix = (!isProduction && !isPrerender) ? 'css-dev-only-do-not-override' : 'css';
18
19
export interface Option<DerivativeToken, DesignToken> {
20
/**
0 commit comments