Files
nhgooi.nl/package.json
T
eric.busandClaude Opus 5.5 f7b1dbac8f Generate minified CSS/JS in the Docker build, remove unused assets
- New 'assets' stage in the Dockerfile builds style.min.css and
  functions.min.js from the sources (npm run build:min); they are no
  longer committed, so they can't go stale anymore
- Production (APP_DEBUG off) loads the minified files, local development
  the readable ones, both with a cache-busting version (AssetHelper,
  Asset::url() in the layout)
- Source maps are excluded from the image
- Remove unused assets: public/css/old, public/js/old and unused copies
  of jQuery, wavesurfer, prettyPhoto (min) and mediaplayer_with_plugins
- npm scripts: build:css (committed CSS), build:min (Docker build);
  sass-minify scripts removed
- readme: how the CSS/JS build works

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:00:35 +01:00

30 lines
1.0 KiB
JSON

{
"private": true,
"type": "module",
"scripts": {
"dev": "grunt --gruntfile Gruntfile.cjs watch",
"build": "grunt --gruntfile Gruntfile.cjs concat uglify",
"postinstall": "node scripts/setup-vendor.js || true",
"sass": "sass resources/assets/sass:public/css",
"build:css": "sass --no-source-map resources/assets/sass:public/css",
"build:min": "sass --no-source-map --style compressed resources/assets/sass/style.scss:public/css/style.min.css && grunt --gruntfile Gruntfile.cjs concat uglify",
"sass-watch": "sass --watch resources/assets/sass:public/css",
"js-watch": "grunt --gruntfile Gruntfile.cjs watch"
},
"dependencies": {
"jquery": "^3.7.0",
"jquery-ui": "^1.13.0",
"moment": "^2.30.0",
"daterangepicker": "^3.1.0",
"wavesurfer.js": "^7.8.0",
"air-datepicker": "^3.5.0"
},
"devDependencies": {
"grunt": "^1.6.1",
"grunt-contrib-concat": "^2.1.0",
"grunt-contrib-uglify": "^5.2.2",
"grunt-contrib-watch": "^1.1.0",
"sass": "^1.71.1"
}
}