{"library":"rollup-plugin-mjml","title":"rollup-plugin-mjml","description":"Rollup plugin to compile MJML templates into HTML during the build process. Current version 1.0.3, released in 2020. The plugin works by importing .mjml files in JavaScript or using @rollup/plugin-multi-entry to bundle templates. It outputs HTML files to a specified directory, with options for validation level and output extension. This plugin bridges the gap between Rollup bundling and MJML email template compilation, allowing integration into modern build pipelines. Longer release cadence; last update over 2 years ago.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-mjml"],"cli":null},"imports":["import mjml from 'rollup-plugin-mjml'","const mjml = require('rollup-plugin-mjml').default","export default { plugins: [mjml()] }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport mjml from 'rollup-plugin-mjml';\n\nexport default {\n  input: 'src/main.js',\n  output: { dir: 'dist', format: 'es' },\n  plugins: [\n    mjml({\n      outputDir: 'dist/email',\n      validationLevel: 'strict'\n    })\n  ]\n};\n\n// src/main.js\nimport './template.mjml';\n\nconsole.log('Template compiled!');","lang":"typescript","description":"Shows basic Rollup configuration with rollup-plugin-mjml, importing an MJML file and outputting HTML to a subdirectory.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}