Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore!: dist files optimizations (sw asset name changes) #97

Merged
merged 14 commits into from
Mar 11, 2024
Merged
24 changes: 12 additions & 12 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,18 @@ const prod = {
})
})
}
}
},
new CompressionPlugin({
algorithm: 'gzip',
test: /\.(js|css|svg)$/,
exclude: /.map$/,
compressionOptions: {
level: 9,
numiterations: 15,
minRatio: 0.8
},
deleteOriginalAssets: true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleteOriginalAssets was in the wrong location (inside compressionOptions) previously.

})
],
optimization: {
splitChunks: {
Expand Down Expand Up @@ -186,17 +197,6 @@ const common = {
}),
new webpack.EnvironmentPlugin({
BASE_URL: process.env.BASE_URL ?? 'helia-sw-gateway.localhost'
}),
new CompressionPlugin({
algorithm: 'gzip',
test: /\.(js|css|html|svg)$/,
exclude: /.map$/,
compressionOptions: {
level: 9,
numiterations: 15,
minRatio: 0.8,
deleteOriginalAssets: true
}
})
],

Expand Down
Loading