Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Svg Somizer

Svg Somizer is an SVG Optimizer by Somizer that utilizes SVGO to optimize SVG files, helping reduce file size and improve performance in your projects.

Usage Example

Optimize Specific Directories

To optimize SVG files located in specific directories, you can specify the directories as a comma-separated list:

name: SVG Optimization
on: [push]

jobs:
  optimize-svgs:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

      - name: Run SVG Optimizer
        uses: somizers/svg@v1
        with:
          directories: './assets, ./icons'

Optimize the Entire Project Directory

To optimize all SVG files across the entire project directory, simply omit the directories input:

name: SVG Optimization
on: [push]

jobs:
  optimize-svgs:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

      - name: Run SVG Optimizer
        uses: somizers/svg@v1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages