rtw

requirejs-to-webpack-cli

Translates RequireJS build configs to their webpack counterpart.

Showing:

Popularity

Downloads/wk

3

GitHub Stars

27

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

4

Size (min+gzip)

3.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

requirejs-to-webpack-cli

Build Status Codacy Badge Codacy Badge npm version Dependencies

CLI utility for converting RequireJS configuration JSON to a webpack configuration module.

Installation

Yarn is recommended for installation:

$ yarn global add requirejs-to-webpack-cli

But you can still use npm:

$ 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) 2016 Alexander Martin

MIT (http://www.opensource.org/licenses/MIT)

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100