Authored by 毕凯

isNotDev

... ... @@ -6,9 +6,9 @@ const logger = global.yoho.logger;
const css = {};
module.exports = (file) => {
const isDev = !(process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test');
const isNotDev = process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test';
if (css[file] && !isDev) {
if (css[file] && isNotDev) {
return Promise.resolve(css[file]);
}
... ...