Semantic-ui-react: Publish a cdn that supports stack snippets

Created on 12 Aug 2018  路  6Comments  路  Source: Semantic-Org/Semantic-UI-React

Hi, sometimes when i want to help others with semantic-ui-react on stackoverflow i want to write a snippet using the built in stack snippets.
This requires a umd / cdn version. but none of the cdn's out there are supported by stack snippets editor because of cors or other security issues.

It would be great if we had an official cdn for semantic-ui-react.

triage

All 6 comments

Hi, we have a UMD build published on:


See a working codepen: https://codepen.io/anon/pen/yqwyrm It uses latest versions of SUIR and React. You can also use our template for codesandbox: https://codesandbox.io/s/2l3n74j9y

@layershifter Thanks for the quick replay.
I know about these, but as i mentioned these and other versions i found are not supported within the stack snippets context.

For example i get this error:
image

Or
image

Oh, I see now. It's strange that we ship this part of code to production, I will investigate this tomorrow.

I've recently merged. Previously checked resulting build, it works 馃彺 Size was seriously reduced, too.

Will be shipped with the next release. Thanks for report 馃憤

@layershifter Great news!
Did you test it on stackoverflow (inside stack snippets)?

Nope, but the code that accessed localStorage was removed, so it should works.

You can test it locally, too:

# clone repo
yarn
yarn build:dist:umd
yarn serve --ssl dist/umd

The build will be accessible on:
https://localhost:5000/semantic-ui-react.min.js

Was this page helpful?
0 / 5 - 0 ratings