requirejs-to-webpack-cli
CLI utility for converting RequireJS configuration JSON to a webpack configuration module.
Installation
npm install -g requirejs-to-webpack-cli
Usage
# Default output is ./webpack.config.js
requirejs-to-webpack-cli <input> [output]
# Aliases
requirejs-to-webpack <input> [output]
r2w <input> [output]
# Example:
r2w build.config
Thanks
Lots of thanks to Jamund Ferguson for his write up on how to convert to webpack from RequireJS. This tool aims to automate many of the steps outlined in that guide.
Contribute
There is definitely much more that can be done to automate the configuration conversion. If you have any experience in RequireJS and webpack, please feel free to make a pull request!
License
Copyright (c) 2015 Alexander Martin