Development
The experiment framework is built around a fast inner loop: save a file, get a clipboard-ready bundle, paste it into Adobe Target.
The inner loop
Edit source → Vite rebuilds → IIFE bundle → copied to clipboard → paste into Adobe Target → refresh previewEverything in this section describes how that loop works and how to extend it.
For browser-first iteration, pnpm live starts the same focused watcher, opens targetUrl, and reinjects after bundle changes.
Sections
- Watch Mode & Clipboard -
pnpm start 0, clipboard mechanics, Adobe Target paste workflow - Variations - adding v2/v3, the
-eNflag, dedup guard - Configuration -
experiment.config.jsandsrc/config.jsfields - Templates - product-card vs minimal, when to use each
- Run and Ship - live injection, production builds, and handoff