mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-03 01:16:14 +03:00
Add caching rule to speed up subsequent imagemin builds.
This commit is contained in:
parent
32d88d5537
commit
5e96ba697d
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user