Skip to content

Commit d72d1ee

Browse files
committed
Removed html watcher.
1 parent d40cc7a commit d72d1ee

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

index.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,6 @@ function ViteEjsPlugin(data: ViteEjsPluginDataType = {}, options?: ViteEjsPlugin
2727
config = resolvedConfig;
2828
},
2929

30-
/**
31-
* Force full reload on .html change
32-
*/
33-
handleHotUpdate({file, server}) {
34-
if (file.endsWith(".html")) {
35-
server.ws.send({
36-
type: "full-reload"
37-
});
38-
}
39-
},
40-
4130
transformIndexHtml: {
4231
enforce: "pre",
4332
transform(html) {

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default defineConfig({
3333
ViteEjsPlugin((viteConfig) => {
3434
// viteConfig is the current viteResolved config.
3535
return {
36+
root: viteConfig.root,
3637
domain: "example.com",
3738
title: "My vue project!"
3839
}

0 commit comments

Comments
 (0)