
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
vite-plugin-mjml
Advanced tools
A plugin for compiling mjml files in your Vite pipeline.
npm i -D vite-plugin-mjml
Install vite-plugin-mjml and add it to your Vite configuration:
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import laravel from 'vite-plugin-laravel'
import mjml from 'vite-plugin-mjml'
export default defineConfig({
plugins: [
laravel(),
vue(),
mjml({
input: 'resources/mail',
output: 'resources/views/emails',
extension: '.blade.php',
}),
],
})
When running vite dev, all .mjml files in your input directory will be compiled to output when saved.
Similarly, when building for production, all files in input will be compiled as well.
For instance,
resources/mail/onboarding/welcome.mjmlwould be written toresources/views/emails/onboarding/welcome.blade.php.
| Option | Type | Description | Default |
|---|---|---|---|
input | string | Path to the directory in which .mjml files are stored | resources/mail |
output | string | Path to the directory in which compiled files will be written | resources/views/emails |
extension | string | Extension that will be used by compiled .mjml files | .blade.php |
mjml | MJMLParsingOptions | Specific MJML compiler options | {} |
watch | boolean | Whether to watch and compile on the fly in development mode | true |
log | boolean | Whether to print output in the console | true |
·
Built with ❤︎ by Enzo Innocenzi
FAQs
MJML plugin for Vite
The npm package vite-plugin-mjml receives a total of 2,137 weekly downloads. As such, vite-plugin-mjml popularity was classified as popular.
We found that vite-plugin-mjml demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.