Files
nhgooi.nl/Gruntfile.cjs
T
eric.busandClaude Opus 5.5 179413aef5
Build and Deploy (dev) / build (push) Successful in 4m42s
Fix desktop submenu position and stacking, taller homepage images
- Submenu hover bridge now matches the menu item height (was a fixed
  30px), so the dropdown opens below the menu instead of over it
- Give .menu-submenu z-index 100 so it covers the category pills and
  media overlays
- Small homepage news images use a 16:9 aspect ratio on desktop, so they
  grow with the column width (min-height 140px stays)
- Rename Gruntfile.js to Gruntfile.cjs: package.json has type=module,
  which broke the grunt build

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:38:55 +01:00

38 lines
896 B
JavaScript

module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: 'public/js/functions.js',
dest: 'public/js/functions.min.js'
}
},
concat: {
js: {
src: ['resources/assets/js/functions/*.js'],
dest: 'public/js/functions.js'
}
},
watch: {
scripts: {
files: 'resources/assets/js/functions/*.js',
tasks: ['concat', 'uglify'],
options: {
interrupt: true,
},
},
},
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
};