Feat/vite plugin mjml#1
Merged
Merged
Conversation
Vite plugin that compiles MJML email templates to HTML and serves a live dev preview: side-by-side Desktop/Mobile viewports, a Source view, a caniemail-backed compatibility Check tab, light/dark/system theme, and live reload.
List it in the root README, declare its client build entries in knip, ignore the local vite-plugin-inspect reference checkout and the gstack session dir, and update the lockfile.
pnpm publint packs each package and checks its exports resolve, but the CI job ran it without building — so dist/* was missing and every package failed. Build before knip/publint, matching the check script.
Toolbar split into three distinct controls per the design handoff: View (segmented Preview/Source/Check switch), Viewport (independent Desktop/Mobile toggles with an inline device-size strip), and a pulled-out Edit action. Frame UX: - Size device frames to the email content, capped at the device height, with internal scroll; short emails hug their content. - Widen the desktop frame to 800px. - Drop the iframe's fixed px width (use w-full) so a vertical scrollbar no longer forces a spurious horizontal one. Theming: - Align surfaces/borders/text to the design system's neutral scale, with distinct surface-default / surface-card levels that diverge in dark mode. - Fix borders that never rendered: presetWind3 ships no preflight, so add a Tailwind-style border reset and drop the button reset's border:none. - Defer to native OS scrollbars (macOS overlay, hover-only) so the email stays centered at the exact device width.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.