edtoken / ngrock-webpack-plugin

localhost tunnel for your static build

Home Page:https://www.npmjs.com/package/ngrock-webpack-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ngrock webpack plugin

Port ngrock to webpack-dev-server
localhost tunnel for your static build

Build Status npm version Maintainability HitCount

NPM

NPM

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

Unit testing

npm test

License

MIT

About

localhost tunnel for your static build

https://www.npmjs.com/package/ngrock-webpack-plugin

License:MIT License


Languages

Language:JavaScript 100.0%