Allow source to be bundled
nikolay-borzov opened this issue · 4 comments
nikolay-borzov commented
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
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
Right, but how can I bundle material.theme.css
into my css bundle?
jarek-foksa commented
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
Got it. Thanks