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

My library generates a CSS file, I'd like to watch it and include it #57

Closed
lorem--ipsum opened this issue Jun 18, 2018 · 2 comments
Closed

Comments

@lorem--ipsum
Copy link

Question

Description
I have a library of components (TS, React, SCSS) that follows a very simple structure. I've developed a tool similar to Docz but I'd like to give Docz a try. Having Docz use the TSX components is easy, but I have no idea how to include in the generated HTML my project's generated CSS.

Give more information about your doubt

Should this be a plugin ? Or should I somehow use webpack for that ? I have no idea. ¯_(ツ)_/¯

Also, thanks a lot for this project, it looks great !

@pedronauck
Copy link
Member

pedronauck commented Jun 18, 2018

In the issue #6 you can see some related case, but if you want to use the generated css on the HTML file, you can use webpack extract plugin or create your own index.html as we explain here

@pedronauck
Copy link
Member

pedronauck commented Jun 22, 2018

@lorem--ipsum
After released v0.2.11 you can use docz-plugin-css to configure your CSS just by adding a plugin ✌️

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

2 participants