Showing
1 changed file
with
2 additions
and
2 deletions
@@ -6,9 +6,9 @@ const logger = global.yoho.logger; | @@ -6,9 +6,9 @@ const logger = global.yoho.logger; | ||
6 | const css = {}; | 6 | const css = {}; |
7 | 7 | ||
8 | module.exports = (file) => { | 8 | module.exports = (file) => { |
9 | - const isDev = !(process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test'); | 9 | + const isNotDev = process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test'; |
10 | 10 | ||
11 | - if (css[file] && !isDev) { | 11 | + if (css[file] && isNotDev) { |
12 | return Promise.resolve(css[file]); | 12 | return Promise.resolve(css[file]); |
13 | } | 13 | } |
14 | 14 |
-
Please register or login to post a comment