A simple example of how to use webpack loaders
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.html
index.js
package.json
sweet.js
webpack.config.js

README.md

webpack-loaders-example

A simple example of how to use webpack with a loader

Try me!

npm install webpack -g
git clone https://github.com/ohall/webpack-loaders-example
cd webpack-example
npm install
webpack

Now point your browser at index.html which links the new bundle.js you've created.

Observe that the ES6 syntax in index.js has been babelified into ES5 in the bundle.js file.