logic-solver icon indicating copy to clipboard operation
logic-solver copied to clipboard

Adoption in browser

Open joshim5 opened this issue 8 years ago • 1 comments

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.

joshim5 avatar Jul 25 '16 18:07 joshim5

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

ekuiter avatar Mar 31 '18 09:03 ekuiter