Forked from mjmlio/mjml-component-boilerplate.
- Clone the repo
npm install
inside- Create custom components inside
src/components
folder- Components will be compiled into the
build/components
folder after build step
- Components will be compiled into the
- Add your custom component paths to
.mjmlconfig
(reference the one in thebuild/components
folder) - Create emails inside
src/emails
folder- Components will be compiled into the
build/emails
folder after build step
- Components will be compiled into the
npm run build
to build, ornpm start
if you want to watch recompile on each file change- Results will be in the
build
folder