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
- Host: GitHub
- URL: https://github.com/simonsmith/webpack-example
- Owner: simonsmith
- Created: 2014-10-16T20:02:51.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-04T10:54:22.000Z (over 11 years ago)
- Last Synced: 2025-04-12T08:54:03.389Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 281 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```