This boilerplate was made for this blog post.
npm install -g truffle
git clone https://github.com/tko22/truffle-webpack-boilerplate.git
cd truffle-webpack-boilerplate
npm install
npm run dev
##Run
truffle develop - blockchain development environment
truffle migrate - To deploy smart contract
truffle migrate --reset - To change existing smart contract
npm build
npm run dev