Skip to content

Commit

Permalink
Revert "build: fix dev server page refresh"
Browse files Browse the repository at this point in the history
This reverts commit 3660ec2.
  • Loading branch information
pskelin committed Sep 11, 2023
1 parent 3660ec2 commit 105db9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 40 deletions.
38 changes: 0 additions & 38 deletions packages/tools/lib/dev-server/custom-hot-update-plugin.js

This file was deleted.

8 changes: 6 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const os = require("os");
const { defineConfig } = require('vite');
const virtualIndex = require("@ui5/webcomponents-tools/lib/dev-server/virtual-index-html-plugin.js");
const customHotUpdate = require("@ui5/webcomponents-tools/lib/dev-server/custom-hot-update-plugin.js");

// do not refresh from .json/.html on MacOS due to false positives
const ignored = os.platform() === "darwin" ? ["**/*.json", "**/*.html"] : [];
Expand All @@ -11,6 +10,11 @@ module.exports = defineConfig(async () => {
build: {
emptyOutDir: false,
},
plugins: [await virtualIndex(), customHotUpdate()],
server: {
watch: {
ignored,
},
},
plugins: [await virtualIndex()],
}
});

0 comments on commit 105db9f

Please sign in to comment.