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

Feature request: generate .js.flow file for each .css module #91

Open
alexkrolick opened this issue Mar 6, 2019 · 2 comments
Open

Feature request: generate .js.flow file for each .css module #91

alexkrolick opened this issue Mar 6, 2019 · 2 comments

Comments

@alexkrolick
Copy link

Feature request:

Extend the JSON generation to create a similar xyz.js.flow file that could be used to map xyz.css to a Flow type definition, so that style imports are typesafe

@madyankin
Copy link
Owner

Unfortunately I have no enough time for the project, so PR's are welcome!

@axyz
Copy link

axyz commented Jun 4, 2020

@alexkrolick you can do it easily with a side effect in a custom getJSON function

example implementation for typescript types:

https://github.com/utilitycss/atomic/blob/master/src/postcss/atomic-css-modules.ts#L243

https://github.com/utilitycss/atomic/blob/master/src/action/generate-atom-typings.ts

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