Closed sandro-k closed 9 years ago
Currently the bundled version of MQTT.js is placed unter dist/browserMqtt.js and is build manually using browserify.
npm install -g browserify // install browserify cd node_modules/mqtt npm install . // install dev dependencies browserify mqtt.js -s mqtt > browserMqtt.js // require mqtt in your client-side app
It would be great to just type grunt bundle:mqttjs or something similar to create a MQTT.js version for the browser.
grunt bundle:mqttjs
MQTT.js can be bundled with
browserify node_modules/mqtt/mqtt.js -o dist/mqtt.js
as of updates are not to frequent the command can be run manually.
Currently the bundled version of MQTT.js is placed unter dist/browserMqtt.js and is build manually using browserify.
It would be great to just type
grunt bundle:mqttjs
or something similar to create a MQTT.js version for the browser.