File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
components/_util/cssinjs/hooks Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,13 @@ import { ref, computed } from 'vue';
8
8
9
9
const EMPTY_OVERRIDE = { } ;
10
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
+
11
15
// Generate different prefix to make user selector break in production env.
12
16
// This helps developer not to do style override directly on the hash id.
13
- 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' ;
14
18
15
19
export interface Option < DerivativeToken , DesignToken > {
16
20
/**
You can’t perform that action at this time.
0 commit comments