Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edtoken/ngrock-webpack-plugin
localhost tunnel for your static build
https://github.com/edtoken/ngrock-webpack-plugin
Last synced: 2 months ago
JSON representation
localhost tunnel for your static build
- Host: GitHub
- URL: https://github.com/edtoken/ngrock-webpack-plugin
- Owner: edtoken
- License: mit
- Created: 2017-10-02T14:37:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-12T16:02:28.000Z (about 7 years ago)
- Last Synced: 2024-08-08T18:11:09.641Z (5 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/ngrock-webpack-plugin
- Size: 35.2 KB
- Stars: 5
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ngrock webpack plugin
Port ngrock to webpack-dev-server
localhost tunnel for your static build[![Build Status](https://api.travis-ci.org/edtoken/ngrock-webpack-plugin.svg?branch=master)](https://travis-ci.org/edtoken/ngrock-webpack-plugin)
[![npm version](https://badge.fury.io/js/ngrock-webpack-plugin.svg)](https://badge.fury.io/js/ngrock-webpack-plugin)
[![Maintainability](https://api.codeclimate.com/v1/badges/e5d9c3dff376764b7763/maintainability)](https://codeclimate.com/github/edtoken/ngrock-webpack-plugin/maintainability)
[![HitCount](http://hits.dwyl.com/edtoken/ngrock-webpack-plugin.svg)](http://hits.dwyl.com/edtoken/ngrock-webpack-plugin)[![NPM](https://nodei.co/npm/ngrock-webpack-plugin.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/ngrock-webpack-plugin/)
[![NPM](https://nodei.co/npm-dl/ngrock-webpack-plugin.png?height=3)](https://nodei.co/npm/ngrock-webpack-plugin/)
## Install
```
npm install ngrock-webpack-plugin --save-dev
```## Basic Usage
### 1. Include plugin
```
var NgrockWebpackPlugin = require('ngrock-webpack-plugin')
var webpackConfig = {
entry: 'index.js',
output: {
path: __dirname + '/dist',
filename: 'index_bundle.js'
},
devServer: {
hot: true,
inline: true,
headers: {'Access-Control-Allow-Origin': '*'},
historyApiFallback: {
index: 'http://localhost:8080/index.html'
}
},
plugins: [new NgrockWebpackPlugin()]
}webpack-dev-server --progress --port=8080 --hot --inline --config=webpack.config.js
```### 2. Open and send link to your friend
![LogMessage](/log.png)## Unit testing
```
npm test
```## License
[MIT](https://github.com/edtoken/ngrock-webpack-plugin/blob/master/LICENSE)