Webpacking
Webpack module bundler
Coverage
- Webpack
- Babel
- NPM
- Node
- React
- Grunt
- Gulp
- Broccoli
- Broserify
- Rollup
YEP!
NOPE!
Mostly
Why am I talking about this?
"Ecosystem"
-
React
-
Redux (or some Flux type)
-
ImmutableJS
-
GraphQL
-
Yarn
-
Webpack
-
RxJS
-
..........
![](https://s3.amazonaws.com/media-p.slid.es/uploads/435163/images/3530523/react.png)
This one right here...
PAIN!!!
/?search=super&simple&webpack&config
![](https://s3.amazonaws.com/media-p.slid.es/uploads/435163/images/3434019/Screen_Shot_2017-01-25_at_10.05.58_PM.png)
What problem(s) does it solve?
How we used to do it...
![](https://s3.amazonaws.com/media-p.slid.es/uploads/435163/images/3434025/Screen_Shot_2017-01-25_at_10.21.14_PM.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/435163/images/3434042/grunt-concat.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/435163/images/3434043/grunt-logo.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/435163/images/3434059/gulp-concat.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/435163/images/3434058/gulp-logo.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/435163/images/3434069/gulp-concat-dir.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/435163/images/3530461/node.js.png)
var _ = require('lodash');
var whatever = require('./whatever.js');
// This function does something
function some(thing, cb) { return cb(thing) };
exports.some = some;
module.exports = {
something: some(whatever, _.union)
};
CommonJS
var React = require('react');
var Greeting = React.createClass({
render: function() {
return <h1>Hello, {this.props.name}</h1>;
}
});
module.exports = Greeting;
![](https://s3.amazonaws.com/media-p.slid.es/uploads/435163/images/3530523/react.png)
Workload
- Get a simple Webpack 1 project working
- Migrate it to Webpack 2
- Build our own Webpack 2 project
- Explore more features, configurations...
Make it Work
https://github.com/Webpacking/webpack-1.git
Clone this repo and convert this into a Webpack project.
Webpacking
By shinobi881
Webpacking
- 780