Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unclear how to migrateΒ #234

@DumpName

Description

@DumpName

Hi,
I am in the process of migrating my mailing templates to the latest version of vue-email. However as the rendering process changed and is now using an external renderer I am not sure what steps I have to follow to migrate my project.

Initial Situation

My initial Situation is the following:
My project is split into multiple npm workspaces as this gives me the option to only re-render the individual workspaces if nothing has changed in the other environments. The config for vue-email is the following

{
 "name": "mailing",
 "version": "1.0.0",
 "workspaces": [
    "_themes/webshop_v3",
    "mailing",
    "apiTest"
  ],
  "dependencies": {
    "vite": "^6.3.5",
    "vite-bundle-visualizer": "^1.2.1",
    "vite-plugin-compression2": "^1.4.0"
  },
  "devDependencies": {
    "cypress": "^13.17.0",
    "eslint": "^9.30.0",
    "realfavicon": "^0.4.18"
  }
}
{
    "name": "mailing",
    "version": "2.0.3",
    "scripts": {
        "build": "npx vue-email export --dir=src --out=dist",
        "postbuild": "rm -rf dist/components"
    },
    "dependencies": {
        "vue": "^3.4.29",
        "vue-email": "^0.8.11"
    }
}

In the mailing/src folder I have 2 subfolders, one named templates containing the mail templates that I want to render, and another named components that contains 2 custom components for the mail templates.

During the migration process I updated the templates to use the renamed components that are imported from '@vue-email/components' however i am not sure how write a render script that gives me the same result as the old one.

As I am using vite everywhere else I would love to use vite here as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions