Minifying JS/CSS assets
I'm trying to work out how to minify my JS and CSS assets in production. I'm using the
Running
Strangely, all of the files are minified in my local environment when running
What am I missing?
enlightn package and it flags a number of assets which aren't minified, including both core Filament resources such as public/css/filament/forms/forms.css and public/js/filament/filament/echo.js as well as plugin resources such as public/js/saade/filament-fullcalendar/components/filament-fullcalendar-alpine.js.Running
npm run build doesn't minify them and here is my Vite config:Strangely, all of the files are minified in my local environment when running
npm run build, just not in my sandbox or production environment.What am I missing?