This repo is to showcase a usage of webpack. It's:
- Angular 1.x,
- ES6
- Babel 6
Idea is based on egghead.io videos and it's goal is glorify modules.
Tools:
-
node >= 5.x (supports es6) I recommend nvm
-
when cloned type:
npm i
How to start a server on http://localhost:9090/
(bundles are served from memory):
npm start
Command to build dist:
npm run build
Command to serve dist files:
npm run dist
Remarks about my mistake:
When in webpack.config.js
you change module.export
to module.exports
it's fine with just:
webpack
Might be run with the one of the following (only after npm run dist
):
npm run dev (this one uses nodemon)
node app.js
Runs on localhost:3000
.
- Angular with Webpack - Introduction
- Using Angular 1.x With ES6 and Webpack
- .babelrc or package.json: babel section
- babel6 plugin for module exports
- test to use angular mocks
- MONDO integration
Mondo is cool, check it out ;) Here I've created a basic angular integration with its API.