{"id":29041956,"url":"https://github.com/edde746/vite-plugin-mjml","last_synced_at":"2025-06-26T15:06:20.419Z","repository":{"id":300832999,"uuid":"1007349879","full_name":"edde746/vite-plugin-mjml","owner":"edde746","description":"Import .mjml files with Vite","archived":false,"fork":false,"pushed_at":"2025-06-23T21:26:54.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-23T21:30:59.602Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edde746.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-23T21:23:19.000Z","updated_at":"2025-06-23T21:26:57.000Z","dependencies_parsed_at":"2025-06-23T21:32:34.966Z","dependency_job_id":"30d03a37-091d-4c05-bad3-a18809f352a6","html_url":"https://github.com/edde746/vite-plugin-mjml","commit_stats":null,"previous_names":["edde746/vite-plugin-mjml"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edde746/vite-plugin-mjml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edde746%2Fvite-plugin-mjml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edde746%2Fvite-plugin-mjml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edde746%2Fvite-plugin-mjml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edde746%2Fvite-plugin-mjml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edde746","download_url":"https://codeload.github.com/edde746/vite-plugin-mjml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edde746%2Fvite-plugin-mjml/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262090283,"owners_count":23257126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-26T15:06:16.666Z","updated_at":"2025-06-26T15:06:20.398Z","avatar_url":"https://github.com/edde746.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite-plugin-mjml\n\nA Vite plugin that allows you to import MJML files and automatically compiles them to HTML.\n\n## Installation\n\n```bash\nnpm install @edde746/vite-plugin-mjml mjml\n```\n\n## Usage\n\nAdd the plugin to your `vite.config.js`:\n\n```js\nimport { defineConfig } from 'vite';\nimport { mjmlPlugin } from '@edde746/vite-plugin-mjml';\n\nexport default defineConfig({\n  plugins: [mjmlPlugin()]\n});\n```\n\nThen you can import MJML files directly in your JavaScript/TypeScript code:\n\n```js\nimport emailHtml from './email.mjml';\n\n// emailHtml contains the compiled HTML string\ndocument.body.innerHTML = emailHtml;\n```\n\n## Example\n\nCheck the `example/` directory for a complete working example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedde746%2Fvite-plugin-mjml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedde746%2Fvite-plugin-mjml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedde746%2Fvite-plugin-mjml/lists"}