/webpack-example

AMD and CommonJS examples with Webpack

Primary LanguageJavaScript

Webpack example

This is a small example showing how AMD and CommonJS can be built via Webpack.

Flight

Flight and its ecosystem of components are all written in AMD. In this example the component is written in CommonJS format and seamlessly requires AMD dependencies.

React

A simple example of a React component being built with a JSX compiler

Building

# Install all node and bower deps, and run webpack
npm run setup
# run webpack
npm run build