secundant / neodx

A collection of frontend-focused tools aimed at enhancing your development experience
MIT License
77 stars 6 forks source link

`@neodx/svg` Reborn CLI #127

Open secundant opened 10 months ago

secundant commented 10 months ago

The @neodx/svg CLI is currently not shown in the documentation and readme due to deprecations caused by a lack of control and poor configuration design. However, some users need to build sprites externally without using bundlers. Therefore, I need to restructure the configuration practices for @neodx/* and provide a flexible CLI that can be easily configured.

Possible design:

// .neodxrc.js

export default {
  svg: {
    inputRoot: './assets/icons',
    output: './public/sprites',
    // ...
  }
}
yarn sprite
# or
yarn svg build