I\'m trying to figure out an easy way to require a html template in the script and then run browserify from the CLI.
Say I want to grab a template and append it to the b
Use: https://github.com/substack/brfs
1
npm install brfs
2
var fs = require('fs'); var html = fs.readFileSync(__dirname + '/robot.html', 'utf8'); console.log(html);
3
browserify -t brfs example/main.js > bundle.js