Status: DEV
A jQuery plugin for loading PINF JavaScript Bundles.
npm install pinf-for-jquery
http://localhost/index.html
<script src="jquery.js"></script>
<script src="pinf.jquery.js"></script>
<script>
$.pinf.sandbox("bundle.js", function(sandbox) {
sandbox.main();
});
</script>
http://localhost/bundle.js
PINF.bundle("", function(require) {
require.memoize("/main.js", function(require, exports, module) {
exports.main = function(options) {
console.log("HelloWorld!");
}
});
});
Requirements:
Run tests:
make test
Launch development workspace:
make run-dev
open http://localhost:8080/
make build