Recently I had the opportunity to use Browserify as one of the tools for creating a JavaScript module for a client that is building a mapping product for architects and urban planners.
In that project I used Browserify and npm scripts to bundle the module into a file the client could use as a standalone library that could be added to any web page that needed to use the tool.
It was a fairly straightforward and flexible build process, and here I'll outline a similar structure that you could use in your projects.
Our example project will be named Pizza, because our example library will do nothing but return the string 'Pizza'. Deal with it.
Your new post is loading...