ngrock-webpack-plugin

0.0.2 • Public • Published

ngrock webpack plugin

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

Build Status

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

Package Sidebar

Install

npm i ngrock-webpack-plugin

Weekly Downloads

3

Version

0.0.2

License

MIT

Last publish

Collaborators

  • edtoken