An open API service indexing awesome lists of open source software.

https://github.com/simonsmith/webpack-example

AMD and CommonJS examples with Webpack
https://github.com/simonsmith/webpack-example

Last synced: about 1 year ago
JSON representation

AMD and CommonJS examples with Webpack

Awesome Lists containing this project

README

          

# Webpack example

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

## Flight

[Flight](https://github.com/flightjs/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

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

``` bash
# run webpack
npm run build
```