Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

bump css-loader and move from squoosh to sharp for image minify #975

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ postgres_data
dockerise/postgres/data/*.sql

# #Docker config file
# Dockerfile.dev
Dockerfile.dev
Binary file modified core/static/core/images/atlas/great.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified core/static/core/images/atlas/homepage-mobile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified core/static/core/images/atlas/homepage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion core/static/core/styles/main.css

Large diffs are not rendered by default.

7,308 changes: 1,594 additions & 5,714 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"author": "DBT",
"license": "ISC",
"devDependencies": {
"@squoosh/lib": "^0.4.0",
"sharp": "0.32.6",
"copy-webpack-plugin": "^10.2.4",
"css-loader": "^6.6.0",
"css-loader": "^6.7.3",
"image-minimizer-webpack-plugin": "^3.2.3",
"jest": "^29.6.0",
"jest-environment-jsdom": "^29.6.0",
Expand All @@ -29,7 +29,8 @@
"webpack-cli": "^4.9.2"
},
"dependencies": {
"govuk-frontend": "^4.5.0"
"govuk-frontend": "^4.5.0",
"nvm": "^0.0.4"
},
"overrides": {
"semver-regex": "^3.1.4",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = {
"...",
new ImageMinimizerPlugin({
minimizer: {
implementation: ImageMinimizerPlugin.squooshMinify,
implementation: ImageMinimizerPlugin.sharpMinify,
},
}),
],
Expand Down