Asset Files
Any files that you add to your template sources will be copied over to the root of the build destination directory, so you can organize your email templates as needed.
Global assets
You may define a global email assets folder that will be copied to the build directory.
The Starter sets it to the src/images
directory:
config.js
module.exports = {
build: {
templates: {
assets: {
source: 'src/images',
destination: 'images'
}
}
}
}
Everything inside assets.source
will be copied to the assets.destination
directory, which is relative to templates.destination.path
.
Multiple paths
You may define multiple asset paths by using an array:
config.js
module.exports = {
build: {
templates: {
assets: {
source: ['src/images', 'src/fonts'],
destination: 'assets'
}
}
}
}
Copyright © 2023 Maizzle SRL Brand policy
Edit this page on GitHub