I', using browserify to transform node modules to browser ones for my express app.
This is the command to browserify
browserify -r jquery > ./public/js_app/jquery.js
browserify -r jquery-ui-browserify > ./public/js_app/jquery-ui.js
And this is to require jquery
var jQuery = require('jquery');
this code works fine
jQuery("#info-dialog");
but I don't know how to include jquery-ui-browserify. I have tried this but not works
var jQuery = require('jquery');
require('jquery-ui-browserify');
jQuery("#info-dialog").dialog({
resizable: false,
height: 100,
modal: true
});
Thanks
requirejQuery and jQuery UI in one file and then bundle that up? Also, you should assign some variable torequire('jquery-ui-browserify'). For example:var jQueryUI = require('jquery-ui-browserify');