From 5e96ba697d59c0f67526f703bc0d113d61660ad3 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Wed, 21 Aug 2019 21:59:06 -0700 Subject: [PATCH] Add caching rule to speed up subsequent imagemin builds. --- generator/src/develop.js | 1 + 1 file changed, 1 insertion(+) diff --git a/generator/src/develop.js b/generator/src/develop.js index 385cb6cc..cd79a0ea 100644 --- a/generator/src/develop.js +++ b/generator/src/develop.js @@ -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",