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

Less unique files for Standalone-UMD builds #2264

Open
SebastianGode opened this issue Jan 29, 2024 · 2 comments
Open

Less unique files for Standalone-UMD builds #2264

SebastianGode opened this issue Jan 29, 2024 · 2 comments
Labels
feature New component features and enhancements

Comments

@SebastianGode
Copy link

Describe the feature request
Currently Scale works fine using the provided zip files in the release for non-NodeJS projects. For example: https://github.com/telekom/scale/releases/download/latest/telekom-scale-components-3.0.0-beta.147.zip
However those zip files have a huge amount of separate JavaScript files and co. in them.
Including those files in a git repository is a huge commit and in my opinion not a good practices. However right now it's not possible to just include one js and one css file like in other frameworks as the main ones have several imports and don't work standalone.

What I would like to have would be a single JS file and CSS file for the whole Scale Theme. Fonts or images can stay separately, but at least to offer the option to have way fewer JavaScript files for non-NodeJS projects.

@SebastianGode SebastianGode added the feature New component features and enhancements label Jan 29, 2024
@tischrei
Copy link

It would be nice to have only two files like one JS and one CSS as a minified version as output of scale. This would improve the performance our pipeline infra heavily.

@Aloento
Copy link

Aloento commented Feb 12, 2024

I think you're looking for something like

<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>

So, Rollup is your friend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New component features and enhancements
Projects
None yet
Development

No branches or pull requests

3 participants