ngrock-webpack-plugin
v0.0.2
Published
Ngrock for webpack
Downloads
8
Maintainers
Readme
ngrock webpack plugin
Port ngrock to webpack-dev-server
localhost tunnel for your static build
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