https://github.com/divyanshu-rawat/angular-js-webpack
This repository demonstrates use of webpack in angular js application to make it modular.
https://github.com/divyanshu-rawat/angular-js-webpack
angularjs commonjs-modules webpack
Last synced: about 1 year ago
JSON representation
This repository demonstrates use of webpack in angular js application to make it modular.
- Host: GitHub
- URL: https://github.com/divyanshu-rawat/angular-js-webpack
- Owner: divyanshu-rawat
- Created: 2017-04-01T09:40:03.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-22T16:43:48.000Z (almost 9 years ago)
- Last Synced: 2025-02-15T01:41:21.092Z (about 1 year ago)
- Topics: angularjs, commonjs-modules, webpack
- Language: JavaScript
- Size: 229 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### Bundling Angular with webpack
##
[](https://gitter.im/divyanshu001)
[](https://www.codementor.io/divyanshurawat?utm_source=github&utm_medium=button&utm_term=divyanshurawat&utm_campaign=github)
[](https://twitter.com/r46956)
[](#)
[](http://www.divyanshurawat.in)
[](https://saythanks.io/to/divyanshu-rawat)
[](https://travis-ci.org/divyanshu-rawat/JS-Testing)
[](https://www.npmjs.com/package/npm)
##
### Description
* Angular is so modular you can separate your JavaScript code like your controllers and services into multiple files.
But adding all of the script references to your HTML might be painful. No worries there is a workaround to this problem.
* webpack is a module loader that works similar to how Node handles modules.
With webpack you can install Angular using NPM, the Node Package Manager.
* This application basically monitors the status of github.com and all its related services.
##
### Installation Instructions
* Open a command prompt in the project's root directory.
* Cd into that root folder you just cloned locally.
* Open terminal in the current folder and to install all dependencies type
```javascript
npm install
```
* This installs the dependencies as defined in the package.json file
```javascript
npm run bundle
```
* By running this command example webpack will read and analyze the entry point and its dependencies (including transitive dependencies).Then it will bundle them all into app.bundle.js.
* Now typing
```javascript
http-server
```
* It will launch the server on `http://172.18.0.1:8081`
##
### Contributing
1. Create your **_branch_**: `git checkout -b my-new-feature`
2. **_Commit_** your changes: `git commit -m 'Add some feature'`
3. **_Push_** to the branch: `git push origin my-new-feature`
4. Send a **Pull Request**
5. **_Enjoy!_**
##
### Dependencies
* Angular JS,webpack
#### some examples
* Main Application.

##
* On running npm run bundle.

##
* Sample example showing How webpack works.
