mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-02 22:45:55 +03:00
Tweak imagemin settings to improve performance.
This commit is contained in:
parent
8408ac60d5
commit
70611fa0eb
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user