- In my previous post we have learn about watchify tool to automate Browserify process.
- There are many other useful tools to automate Browserify process like Beefy.
- In this demo,”We will learn about Beefy tool for automate Browserify process”.
- To demonstrate Beefy tool we have created the following structure.
- Beefy tool can be installed using command npm install –g beefy.The following screenshot shows the terminal with Beefy tool installation in progress.
- Now Beefy server can be started using the command beefy demo.js file.The following screenshot shows the terminal with beefy start command.
- From the previous screenshot we can find the Beefy sever is running on 9966 port.
- Now we can open the the demo.html file in the browser.The Beefy takes can of all require statement for the browser.The following screenshot shows the Chrome browser running the demo.html and the log message printed in the developer console.
- We can view the log message printed in Beefy server console.These message are logged due to the load of demo.html file in the browser.The following screenshot shows the messages from Beefy Server Console.
- The demo code can be downloaded from following link.
https://github.com/saan1984/BrowserifyDemoPart4