Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic output name #667

Closed
equinusocio opened this issue Jul 12, 2021 · 3 comments
Closed

Dynamic output name #667

equinusocio opened this issue Jul 12, 2021 · 3 comments

Comments

@equinusocio
Copy link

equinusocio commented Jul 12, 2021

Hello, is there a way to configure style-dictionary in order to get the same filaname as source for the generate files?

I need to take a light.json source template and generate light.json and light.css, same for dark.json source file. So would like:

  • A way to specify output settings and name for single sources
  • Or a way to declare multiple source and relative platforms
src/
  light.json
  dark.json
  
# ⬇⬇⬇⬇  
  
dist
  light
     light.css
     light.json
  dark
    dark.css
    dark.json   
@chazzmoney
Copy link
Collaborator

Also in #619

@dbanksdesign
Copy link
Member

Yea this is a duplicate of #619. I did a very quick and dirty sample of how to do this by using the file names: https://stackblitz.com/edit/style-dictionary-example-ykhwa2?file=config.js

@dbanksdesign
Copy link
Member

Closing in favor of #619

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

No branches or pull requests

3 participants