A
A
Alexander Belov2017-03-19 22:08:13
JavaScript
Alexander Belov, 2017-03-19 22:08:13

How to make livereload on Angular Universal app?

I understand with Angular Universal.
I found a repository suitable for my purposes:
https://github.com/scotch-io/angular2-universal
The problem is that when I try to change the content in the html files of the repository deployed on my computer, my text is not displayed - what remains is what was originally (reloaded the page, closed-reopened the tab again).
UPD I have to turn off the terminal every time and run npm start again, then it works.
How to bind the livereload capability to an Angular Universal app?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
ozknemoy, 2017-03-22
@ozknemoy

works a little clumsy but works. in the manual you can specify what and how there

var LiveReloadPlugin = require('webpack-livereload-plugin');
// в плагины добавить
new LiveReloadPlugin({
        appendScriptTag : true
    })

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question