terrazzoapp / terrazzo

Use DTCG tokens in CI and code

Home Page:https://terrazzo.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow changing filename generated by plugin-js

jbarreiros opened this issue · comments

Both plugin-css and plugin-sass support passing a filename option to change the name of the generated file.

export interface Options {
  /** output file (default: "./tokens/tokens.css") */
  filename?: string;
  ...

Would it be possible to add the same option to plugin-js?

The plugin does support setting filename! It’s just done with the js and json keys individually so you can control the output of both: https://cobalt-ui.pages.dev/docs/plugins/js/

But please let me know if there’s any issue you encounter

Oh dang 🤦🏻 totally missed that. Thank you.