vue-rule-builder
vue-rule-builder copied to clipboard
can i use this without npm but with unpkg?
My attempt:

ps. I do see 'index.min.js' and 'Builder.min.js' in the /dist folder though
I pushed up a new version which should have this fixed.
Thanks for the quick reply. In the meantime i've got this to work, from the top of my mind i did:
<script src="https://unpkg.com/vue-rule-builder/dist/Builder.min.js"></script>
<script src="https://unpkg.com/vue-rule-builder/dist/index.min.js"></script>
<link rel="stylesheet" src="https://unpkg.com/vue-rule-builder/dist/styles.css"></script>
and in vue components I did:
{
....
components:{
rulebuilder: vueRuleBuilder.RuleBuilder
}
as well as mocking require:
window.require = function(x){
if( x == './Builder' ) return vueRuleBuilder.RuleBuilder
}
I will look at your modifications and update my code accordingly. Thanks!