Emgen allows you to easily generate emails from Vue 3 templates.
Below are the possible configuration options that can be passed to createEmgen.
dir: Sets the path to where your includes, styles and templates are stored.
input.includes.dir: Override path to input includes directory.
[dir]/includesinput.styles.dir: Override path to input styles directory.
[dir]/stylesinput.styles.preprocessor: Define a preprocessor for your styles. Valid options are 'sass', 'less' or 'stylus'.
input.styles.prepend: Prepend a string to all stylesheets. Can be useful to define global variables.
input.templates.dir: Override path to input templates directory.
[dir]/templatesoutput.dir: Override path to output directory. Your compiled templates will be written here.
[dir]/.compiledoutput.auto: If true, automatically generates your templates and writes them to the output directory when createEmgen is called. If this options is set to false, you can use emgen.compile or emgen.compileTemplate methods to manually generate templates.
trueverbose: Prints additional context and information.
falsevue: Set to true if you would like to use Vue SFC’s instead of standard HTML.
falsetranspile: Set to true if your Vue SFC’s use Typescript.
falsevue is set to true.i18n.defaultLocale: Set the default fallback locale when using i18n. See i18n for more information.
vue is set to true.i18n.translations: Set global translations. See i18n for more information.
vue is set to true.