The PublicAssetsPlugin
is responsible for finding "assets" in the Mosaic filesystem and copying them to another directory.
Typical use-case is for copying sitemap.xml
and search-data.json
to the public directory of a Next.js site as these are considered static assets for Next.js.
This plugin runs with a priority of -1 so it runs after most other plugins.
Property | Description |
---|---|
outputDir | The directory to copy the assets to. Defaults to ./public |
assets | A collection of filenames to copy to the outputDir |
This plugin is not included in the mosaic config shipped by the Mosaic standard generator so it must be added manually to the plugins
collection: