Use grunt-contrib-imagemin instead of grunt-image.

Updating the gruntfile, and package.json, this commit allows for builds
to work under systems where jpeg-compress cannot be sourced and does the
work of the previous grunt pipeline plugin.
This commit is contained in:
llmII 2023-01-03 17:00:43 -06:00
parent 54e63839db
commit da86025335
2 changed files with 8 additions and 7 deletions

View file

@ -27,7 +27,7 @@ module.exports = function (grunt) {
'copy', 'copy',
'uglify', 'uglify',
'less', 'less',
'image', 'imagemin',
'svg2png', 'svg2png',
'svg2jinja' 'svg2jinja'
] ]
@ -139,7 +139,7 @@ module.exports = function (grunt) {
], ],
}, },
}, },
image: { imagemin: {
svg4web: { svg4web: {
options: { options: {
svgo: ['--config', 'svg4web.svgo.js'] svgo: ['--config', 'svg4web.svgo.js']
@ -286,7 +286,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-image'); grunt.loadNpmTasks('grunt-contrib-imagemin');
grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-stylelint'); grunt.loadNpmTasks('grunt-stylelint');
@ -300,7 +300,7 @@ module.exports = function (grunt) {
'copy', 'copy',
'uglify', 'uglify',
'less', 'less',
'image', 'imagemin',
'svg2png', 'svg2png',
'svg2jinja', 'svg2jinja',
]); ]);

View file

@ -1,23 +1,24 @@
{ {
"devDependencies": { "devDependencies": {
"each-async": "^2.0.0",
"ejs": "^3.1.8",
"eslint": "^8.18.0", "eslint": "^8.18.0",
"grunt": "~1.5.3", "grunt": "~1.5.3",
"grunt-contrib-copy": "^1.0.0", "grunt-contrib-copy": "^1.0.0",
"grunt-contrib-cssmin": "^4.0.0", "grunt-contrib-cssmin": "^4.0.0",
"grunt-contrib-imagemin": "^4.0.0",
"grunt-contrib-less": "~3.0.0", "grunt-contrib-less": "~3.0.0",
"grunt-contrib-uglify": "~5.2.1", "grunt-contrib-uglify": "~5.2.1",
"grunt-xmlmin": "~0.1.8",
"grunt-contrib-watch": "~1.1.0", "grunt-contrib-watch": "~1.1.0",
"grunt-eslint": "^24.0.0", "grunt-eslint": "^24.0.0",
"grunt-stylelint": "^0.16.0", "grunt-stylelint": "^0.16.0",
"grunt-image": "^6.4.0", "grunt-xmlmin": "~0.1.8",
"ionicons": "^6.0.2", "ionicons": "^6.0.2",
"less": "^4.1.3", "less": "^4.1.3",
"less-plugin-clean-css": "^1.5.1", "less-plugin-clean-css": "^1.5.1",
"sharp": "^0.31.0", "sharp": "^0.31.0",
"stylelint": "^13.13.1", "stylelint": "^13.13.1",
"stylelint-config-standard": "^22.0.0", "stylelint-config-standard": "^22.0.0",
"ejs": "^3.1.8",
"svgo": "^3.0.0" "svgo": "^3.0.0"
}, },
"dependencies": { "dependencies": {