Skip to content

Conversation

@andresz1
Copy link
Member

@andresz1 andresz1 commented Oct 18, 2024

Description

This PR add svg spritemaps support in the bundler. To enable it extend the sui bundler configuration as follows:

"sui-bundler": {
    "spritemaps": [
      {
        "path": ["icons/src/fotocasa/**/*.svg"],
        "options": {
          "output": {
            "filename": "fotocasa.[contenthash].svg",
            "chunk": {
              "name": "fotocasa"
            }
          },
          "sprite": {
            "generate": {
              "title": false
            }
          }
        }
      },
      {
        "path": ["icons/src/habitaclia/**/*.svg"],
        "options": {
          "output": {
            "filename": "habitaclia.[contenthash].svg",
            "chunk": {
              "name": "habitaclia"
            }
          },
          "sprite": {
            "generate": {
              "title": false
            }
          }
        }
      }
    ]
}

@andresz1 andresz1 merged commit b108712 into master Oct 18, 2024
2 checks passed
@andresz1 andresz1 deleted the feat/experimental-spritemaps branch October 18, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants