meteor / logic-solver

MIT License
146 stars 14 forks source link

Adoption in browser #3

Open joshim5 opened 8 years ago

joshim5 commented 8 years ago

Can logic-solver be adopted for use in the browser? I have tried using browserify on the files included here to no avail... After including the resulting bundle script in my HTML and executing "Logic" on the console, I get Uncaught ReferenceError: Logic is not defined.

ekuiter commented 6 years ago

If anyone's still wondering, try using Browserify's --standalone option, like this:

browserify logic-solver.js --standalone Logic > bundle.js

For browser distribution, you might want to uglify the resulting bundle:

browserify logic-solver.js --standalone Logic | uglifyjs > bundle.js