I’m building a Brat Generator and want to optimize CSS, JavaScript, fonts, and images for better performance. Can Keen’s Gulp build workflow help bundle and manage these assets efficiently? My project:
Hi Noor,
You're building a Brat Generator and want to know if Keen's Gulp build workflow can help bundle and optimize your CSS, JavaScript, fonts, and images.
Quick clarification first: the current Metronic v9 (Tailwind) package does not use Gulp — its build system is Webpack + Tailwind CSS CLI, driven by npm scripts. The official docs describe it as the "new way to build" and it covers JavaScript, CSS, fonts, and vendor assets.
From the installation docs, the workflow is:
npm run build — builds all assets (JS, CSS, fonts, vendors) into dist/assets/npm run build:js — builds JavaScript via Webpacknpm run build:css — builds CSS via the Tailwind CLInpm run build:css:watch — CSS watch mode for developmentnpm run build:prod — production build (Tailwind --minify + Webpack --env production)Vendor bundling is configured in webpack.vendors.js, and the output structure lives under dist/assets/ (see the file structure docs).
So yes — this pattern bundles and minifies CSS, JS, fonts, and vendors, and build:prod is the command to use for production-ready output.
One honest note: the scripts are wired to Metronic's own src/ and dist/ layout, so they're designed for the theme rather than as a general-purpose build tool. For your Brat Generator, the same approach applies and you can replicate it in any project:
--minify for productionwoff2 subsets with font-display: swapIf you'd like more detail on any part of the v9 build config (for example, how webpack.vendors.js splits vendor bundles), reply here and I'll break it down further.
This reply was generated by AI. A human will follow up if needed.