Skip to content

Commit

Permalink
[TASK] Drop modernizr
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Oct 9, 2024
1 parent d0b8e5b commit b6f45a9
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 554 deletions.
54 changes: 1 addition & 53 deletions Build/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,6 @@ module.exports = function(grunt) {
});
});

/**
* Grunt task for modernizr
*/
grunt.registerMultiTask("modernizr", "Respond to your user’s browser features.", function () {
var options = this.options(),
done = this.async(),
modernizr = require("modernizr"),
dest = this.data.dest;
modernizr.build(options, function(output) {
grunt.file.write(dest, output);
done();
});
});

/**
* Grunt task for webfonts
*/
Expand Down Expand Up @@ -112,10 +98,6 @@ module.exports = function(grunt) {
comments: false
}
},
modernizr: {
src: '<%= paths.contrib %>modernizr/modernizr.min.js',
dest: '<%= paths.contrib %>modernizr/modernizr.min.js'
},
bootstrapAccordion: {
src: '<%= paths.js %>Src/bootstrap.accordion.js',
dest: '<%= paths.js %>Dist/bootstrap.accordion.min.js'
Expand Down Expand Up @@ -344,40 +326,6 @@ module.exports = function(grunt) {
}
}
},
modernizr: {
main: {
'dest': '<%= paths.contrib %>modernizr/modernizr.min.js',
'options': {
'options': [
'domPrefixes',
'prefixes',
'addTest',
'hasEvent',
'mq',
'prefixedCSSValue',
'testAllProps',
'testProp',
'testStyles',
'setClasses'
],
'feature-detects': [
'custom-elements',
'history',
'pointerevents',
'postmessage',
'webgl',
'websockets',
'css/animations',
'css/columns',
'css/flexbox',
'elem/picture',
'img/sizes',
'img/srcset',
'workers/webworkers'
]
}
}
}
});

/**
Expand All @@ -393,7 +341,7 @@ module.exports = function(grunt) {
/**
* Grunt update task
*/
grunt.registerTask('update', ['copy', 'cssmin:photoswipe', 'cssmin:photoswipedynamiccaptionplugin', 'modernizr']);
grunt.registerTask('update', ['copy', 'cssmin:photoswipe', 'cssmin:photoswipedynamiccaptionplugin']);
grunt.registerTask('icon', ['webfont', 'cssmin:bootstrappackageicon']);
grunt.registerTask('css', ['sass', 'cssmin']);
grunt.registerTask('js', ['uglify', 'removesourcemap']);
Expand Down
Loading

0 comments on commit b6f45a9

Please sign in to comment.