jarek-foksa / xel

Xel - Widget toolkit for building native-like Electron and Web apps
https://xel-toolkit.org
Other
679 stars 58 forks source link

Allow source to be bundled #43

Closed nikolay-borzov closed 6 years ago

nikolay-borzov commented 6 years ago

Currently js requires link tag with theme.

let theme = document.querySelector('link[href*=".theme.css"]').getAttribute("href");

Also there is XelAppElement class in the source that looks like xel demo

jarek-foksa commented 6 years ago

NPM package already has all JS and CSS files (except themes) bundled into xel.min.js file.

Custom elements with "xel-" prefix ("xel-app", "xel-demo", "xel-codeview") are private and used exclusively by the demo site.

nikolay-borzov commented 6 years ago

Right, but how can I bundle material.theme.css into my css bundle?

jarek-foksa commented 6 years ago

The only supported way to use Xel is the one described in README.md. Due to the issues associated with handling relative URLs I have no plans for supporting any other usage scenarios.

nikolay-borzov commented 6 years ago

Got it. Thanks