Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
8 years ago
Commit
bf2775c68216bdb7ea3f5b11e3798e79c891678c
1 parent
9e73e33f
isDev
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
apps/mip/css.js
apps/mip/css.js
View file @
bf2775c
...
...
@@ -6,7 +6,7 @@ const logger = global.yoho.logger;
const
css
=
{};
module
.
exports
=
(
file
)
=>
{
const
isDev
=
process
.
env
.
NODE_ENV
!==
'production'
||
process
.
env
.
NODE_ENV
!==
'test'
;
const
isDev
=
!
(
process
.
env
.
NODE_ENV
===
'production'
||
process
.
env
.
NODE_ENV
===
'test'
)
;
if
(
css
[
file
]
&&
!
isDev
)
{
return
Promise
.
resolve
(
css
[
file
]);
...
...
Please
register
or
login
to post a comment