Skip to main
Table of Contents

Synticore Builder Guide - Mirrors Example

Purpose

This page explains practical mirror rules for copying files and folders into project outputs.

Common Pattern

Use option.mirrors when you need to copy static resources that are not generated by other tasks.

{
  "option": {
    "mirrors": [
      {
        "source": "in/robots",
        "destination": "",
        "match_pattern": "**/*"
      },
      {
        "source": "in/asset/vendor",
        "destination": "asset/vendor",
        "match_pattern": ["**/*", "!**/*.map"]
      }
    ]
  }
}

Notes

  • Mirror rules are path-based copy operations.
  • Negation patterns are supported via !.
  • Use mirrors for deterministic copy behavior instead of ad hoc script steps.

Explore More

Example Home Download Report Issue License