Asset Files

Any files that you add to the src/templates directory will be copied over to the root of the build destination directory.

This way, you can organize your email templates into folders.

Global assets

Additionally, you can also define a global email assets folder that will be copied to the build directory. The Starter sets it to the src/assets/images directory:

// config.js
module.exports = {
  build: {
    assets: {
      source: 'src/assets/images',
      destination: 'images',
    },
    // ...
  }
}

Everything inside build.assets.source will be copied to the build.assets.destination directory, which is relative to build.destination.path

Multiple paths

You can also define multiple asset source paths, by using an array for source:

// config.js
module.exports = {
  build: {
    assets: {
      source: ['src/assets/images', 'src/fonts'],
      destination: 'assets',
    },
    // ...
  }
}