Skip to content

Commit

Permalink
Fix HMR for Pug assets (#2091)
Browse files Browse the repository at this point in the history
---
name: πŸ™‹ Fix HMR for Pug assets
---

<!---
Thanks for filing a pull request πŸ˜„ ! Before you submit, please read the following:

Search open/closed issues before submitting since someone might have pushed the same thing before!
-->
## β†ͺ️ Pull Request
<!---
Provide a general summary of the pull request here
Does this address an existing issue?
-->
#2090

## πŸ’» Examples

<!-- Examples help us understand the requested feature better -->

## βœ”οΈ PR Todo

- [ ] Added/updated unit tests for this change
- [ ] Filled out test instructions
- [x] Included links to related issues/PRs
<!-- Love parcel? Please consider supporting our collective:
πŸ‘‰  https://opencollective.com/parcel/donate -->
  • Loading branch information
Ty3uK authored and DeMoorJasper committed Oct 2, 2018
1 parent 75287b3 commit 030968c
Show file tree
Hide file tree
Showing 2 changed files with 1,251 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/parcel-bundler/src/assets/PugAsset.js
Expand Up @@ -6,6 +6,7 @@ class PugAsset extends Asset {
constructor(name, options) {
super(name, options);
this.type = 'html';
this.hmrPageReload = true;
}

async generate() {
Expand Down

0 comments on commit 030968c

Please sign in to comment.