Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Export CSS and JS generated by storybook #13678

Closed
Loic57 opened this issue Jan 20, 2021 · 0 comments
Closed

Export CSS and JS generated by storybook #13678

Loic57 opened this issue Jan 20, 2021 · 0 comments

Comments

@Loic57
Copy link

Loic57 commented Jan 20, 2021

Is your feature request related to a problem? Please describe
I'm using Storybook in a HTML/CSS/Vanilla JS mode since a good month and I'm happy with all the things I accomplished. My goal was to create a toolkit (bunch of components as button, headings, badge, card, footer, ...) and It works very well. The problem I met at the end of the project is for the export part. What I did in storybook is just static html code. Now I need to give all my work to a PHP developer who works on Typo3 (a CMS as wordpress/drupal). But I don't know how to give it to him my work.

Describe the solution you'd like
What I would have wanted is a command like "npm run extract" which would take all my .scss files and mix them into one file style.css. Same for the JS. Some components I created have a bit of JS like "onclick addclass", "onscroll removeclass", ... and I would need one "scripts.js" file

Describe alternatives you've considered
In "storybook-static" folder generated by "npm run build" I can see a lot of js files, maybe there is one file which could help me ?

Are you able to assist to bring the feature to reality?
No, because I'm just a UI designer who have knowledges in HTML/CSS and a bit of JS, all the rest is too complicated for me 😅

Additional context

Thank you for your assistance

@shilman shilman closed this as completed Feb 23, 2021
@storybookjs storybookjs locked and limited conversation to collaborators Feb 23, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants