Improved developer experience (DX), faster front-end performance, easier maintenance, and reusability across projects.
Do theme on production. Use a local Docker or Lando setup. modernizing drupal 10 theme development pdf
// vite.config.js import defineConfig from 'vite'; export default defineConfig( root: 'src', build: outDir: '../dist', emptyOutDir: true, manifest: true, , ); Improved developer experience (DX)
This script clones the core starterkit template, renames all internal machine keys, rewrites function prefixes, and generates a clean theme directory structure complete with a my_modern_theme.info.yml file. Structuring Your Theme for Scalability faster front-end performance