Closed laurencefass closed 4 years ago
You're proxying everything to the tinylr server, which only has the purpose of sending live reloads, not sending assets. You've got two options:
thanks for your advice i will give it a try.
Before i close may i ask a question: My aim is to live-reload an express app serving html serving html and js files. This module looks like a far simpler solution than wds for my use-case. I am be grateful for any advice or opinion you have on the most economical solution to live reload express serving html.
If you already have an express app, webpack-dev-middleware and webpack-hot-middleware could work as well.
i'm running my server and a separate webpack instance with livereload plugin to reload on changes. not quite working as it doesnt appear to support proxied URL's. ive opened a new issue.
im trying to live reload an app I have working behind an nginx reverse proxy which routes a public domain/path into a private ip:port used which Im using to configure this module in webpack.config.js file. I've created a template for my index file.
When run webpack --watch and I load the page all i see is:
{ "tinylr": "Welcome", "version": "1.1.1" }
I have added the livereload script into the template which is used to create my index.html file but I don't really understand how the plugin knows which file to use for its entry point.
webpack.config.js
This is the file I need to load but Im not specifying it anywhere:
index.template.html (outputs to dist/index.html)
package.json
nginx.conf server block re routes to webpack.config.js values
any advice or support very much appreciated.
thanks