Add caching rule to speed up subsequent imagemin builds.

This commit is contained in:
Dillon Kearns 2019-08-21 21:59:06 -07:00
parent 32d88d5537
commit 5e96ba697d

View File

@ -111,6 +111,7 @@ function webpackOptions(production, routes, { debug, manifestConfig }) {
]),
new ImageminPlugin({
test: /\.(jpe?g|png|gif|svg)$/i,
cacheFolder: path.resolve(process.cwd(), "./cache"),
disable: !production,
pngquant: {
quality: "50-70",