Tweak imagemin settings to improve performance.

This commit is contained in:
Dillon Kearns 2019-08-21 21:09:29 -07:00
parent 8408ac60d5
commit 70611fa0eb

View File

@ -106,15 +106,15 @@ function webpackOptions(production, routes, { debug, manifestConfig }) {
]),
new CopyPlugin([
{
from: "images/**/*"
from: "images/"
}
]),
new ImageminPlugin({
test: /\.(jpe?g|png|gif|svg)$/i,
disable: !production,
pngquant: {
quality: "40-70",
speed: 1
quality: "50-70",
speed: 7
},
plugins: [
imageminMozjpeg({