Build and Deploy (dev) / build (push) Successful in 4m42s
- 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>
38 lines
896 B
JavaScript
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');
|
|
|
|
};
|