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 (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-12T16:02:28.000Z (over 7 years ago)
- Last Synced: 2025-04-28T19:17:30.055Z (2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/ngrock-webpack-plugin
- Size: 35.2 KB
- Stars: 5
- Watchers: 2
- 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[](https://travis-ci.org/edtoken/ngrock-webpack-plugin)
[](https://badge.fury.io/js/ngrock-webpack-plugin)
[](https://codeclimate.com/github/edtoken/ngrock-webpack-plugin/maintainability)
[](http://hits.dwyl.com/edtoken/ngrock-webpack-plugin)[](https://nodei.co/npm/ngrock-webpack-plugin/)
[](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
## Unit testing
```
npm test
```## License
[MIT](https://github.com/edtoken/ngrock-webpack-plugin/blob/master/LICENSE)