ardatan / ardatan/meteor-webpack
How to watch for changes of static files?
- Dominant language
- JavaScript
- Stars
- 123
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
I have some static HTML files in /public - if I change a file, and reload the browser, the file is not updated. I need to restart the server or a bundle rebuild to get the new version.
I tried without success:
```
devServer: {
contentBase: ['./dist', './public'],
watchContentBase: true,
hot: true
},
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the problem with a static HTML file in /public and the shown devServer configuration, then inspect how the development server serves and watches that directory. Done means changing a file in /public and reloading the browser shows the updated content without restarting the server or rebuilding the bundle.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- build-system, web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100