<script src="pathto/dist/polyfill.js"></script>
<script src="pathto/dist/index.js"></script>
<script src="pathto/dist/poll.js"></script>
<script>
window.onload = function(){
var withStyleLink = window.WC.withStyleLink
var withPoll = window.WCPoll.mixins.withPoll
window.customElements.define(
'wc-poll',
withStyleLink(
withPoll(
window.WC.Poll,
{
text: 'question?',
total: 0,
list:[{
label: 'Answer',
name: 'answer',
value: 'Answer',
count: 0,
}]
}
),
'pathto/dist/poll.css'
)
)
}
</script>
<wc-poll></wc-poll>
npm start
# generic version: http://127.0.0.1:9090
npm run build -- --w
NODE_ENV=production npm run build