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([ new CopyPlugin([
{ {
from: "images/**/*" from: "images/"
} }
]), ]),
new ImageminPlugin({ new ImageminPlugin({
test: /\.(jpe?g|png|gif|svg)$/i, test: /\.(jpe?g|png|gif|svg)$/i,
disable: !production, disable: !production,
pngquant: { pngquant: {
quality: "40-70", quality: "50-70",
speed: 1 speed: 7
}, },
plugins: [ plugins: [
imageminMozjpeg({ imageminMozjpeg({