Skip to content

Commit

Permalink
Remove grunt imagine optimization: useless and not safe
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Laské committed Apr 21, 2024
1 parent c62b3f6 commit 39bce6c
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 8,597 deletions.
15 changes: 1 addition & 14 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,6 @@ module.exports = function(grunt) {
dest: 'build/'
}
},
imagemin: {
options: {
optimizationLevel: 0 // Select optimization level between 0 and 7. See https://github.com/gruntjs/grunt-contrib-imagemin#optimizationlevel-png for more info
},
dynamic: {
files: [{
expand: true,
src: 'dashboard/public/img/*.{png,jpg,gif}',
dest: 'build/'
}]
}
},
cssmin: {
target: {
files: [{
Expand All @@ -48,10 +36,9 @@ module.exports = function(grunt) {

// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-terser');
grunt.loadNpmTasks('grunt-contrib-imagemin');
grunt.loadNpmTasks('grunt-contrib-cssmin');

// Default task.
grunt.registerTask('default', ['terser', 'imagemin', 'cssmin']);
grunt.registerTask('default', ['terser', 'cssmin']);

};
Loading

0 comments on commit 39bce6c

Please sign in to comment.