Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/app/Resources/public/assets/simpleWebRTC/build.js

13 lines
455 B

var bundle = require('browserify')(),
fs = require('fs'),
request = require('request'),
uglify = require('uglify-js');
bundle.add('./simplewebrtc');
bundle.bundle({standalone: 'SimpleWebRTC'}, function (err, source) {
if (err) console.error(err);
fs.writeFileSync('simplewebrtc.bundle.js', source);
fs.writeFile('latest.js', uglify.minify(source, {fromString: true}).code, function (err) {
if (err) throw err;
});
});