Skip to content

Commit

Permalink
feat: add watching for create/rename/delete files in the entry path
Browse files Browse the repository at this point in the history
  • Loading branch information
webdiscus committed Jul 14, 2023
1 parent 307d686 commit 2b4fc4c
Show file tree
Hide file tree
Showing 113 changed files with 3,110 additions and 1,667 deletions.
4 changes: 2 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ coverage:
status:
project:
default:
target: 80%
target: 90%
patch:
default:
target: 80%
target: 75%

ignore:
- test/.*
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change log

## 2.1.0 (2023-07-14)
- feat: add watching for create/rename/delete files in the entry path, without restarting Webpack
- fix: watching for create/rename/delete JS files
- fix: add to watching only parent directories, ignore all subdirectories
- fix: generate correct output filenames for assets in deep nested pages after changes in serve mode
- fix: in some cases is missing the hot-update.js file after changes in serve mode
- fix: missing slash in output filename when publicPath is an url without finishing slash
- test: add tests for new features and bug fixes
- chore: update npm packages
- docs: update readme

## 2.0.1 (2023-06-23)
- fix: watching for create/rename Handlebars partials
- chore: update npm packages
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ If you have discovered a bug or have a feature suggestion, feel free to create a


## 🔆 What's New in v2

- **NEW:** you can add/delete/rename a template file in the [entry path](#option-entry-path) without restarting Webpack
- **NEW:** added support for importing style files in JavaScript.\
**Note:** this feature was added for compatibility with `React` projects.\
The importing styles in JavaScript is the `bad practice`. This is the `wrong way`.\
Expand Down Expand Up @@ -142,7 +142,8 @@ See the [complete Webpack configuration](#simple-webpack-config).
- [entry](#webpack-option-entry)
1. [Plugin options](#plugin-options)
- [test](#option-test) (RegEx to handle matching templates)
- [entry](#option-entry) (define templates or path to templates)
- [entry](#option-entry) (entry as a list of template files)
- [entry dynamic](#option-entry-path) (entry as a path to template files)
- [outputPath](#option-outputPath) (output path of HTML file)
- [filename](#option-filename) (output filename of HTML file)
- [js](#option-js) (options to extract JS)
Expand Down Expand Up @@ -572,6 +573,10 @@ new HtmlBundlerPlugin({
})
```
> **Note**
>
> In serve/watch mode you can add/delete/rename a template file in the entry path without restarting Webpack.
#### [↑ back to contents](#contents)
<a id="option-outputPath" name="option-outputPath" href="#option-outputPath"></a>
### `outputPath`
Expand Down
Loading

0 comments on commit 2b4fc4c

Please sign in to comment.