mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 07:23:08 +02:00
production環境の時だけimageminするように
This commit is contained in:
parent
c5cf2eef0d
commit
2a21095299
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ gulp.task('copy:client', [
|
||||||
'./src/web/resources/**/*',
|
'./src/web/resources/**/*',
|
||||||
'./src/web/app/*/resources/**/*'
|
'./src/web/app/*/resources/**/*'
|
||||||
])
|
])
|
||||||
.pipe(imagemin())
|
.pipe(isProduction ? imagemin() : gutil.noop())
|
||||||
.pipe(rename(path => {
|
.pipe(rename(path => {
|
||||||
path.dirname = path.dirname.replace('resources', '.');
|
path.dirname = path.dirname.replace('resources', '.');
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Reference in a new issue