Port ngrock to webpack-dev-server
localhost tunnel for your static build
npm install ngrock-webpack-plugin --save-dev
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
npm test