Open joshim5 opened 8 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
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 getUncaught ReferenceError: Logic is not defined
.