Skip to content

Commit

Permalink
feat: hot reload
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanrajh committed Oct 20, 2023
1 parent 373046d commit f4eee8a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {resolve} from "path";

import { CssCleanup, baseCleanup } from "../node_modules/@shopware-docs/vitepress/src/plugins/cssCleanup";
import Inspect from "vite-plugin-inspect";
import liveReload from 'vite-plugin-live-reload'

import {copyAdditionalAssets, createSitemap, storeRedirects} from "../node_modules/@shopware-docs/vitepress/src/helpers";
import navigation from "./navigation";
Expand Down Expand Up @@ -76,7 +77,6 @@ export default defineConfigWithTheme<ThemeConfig>({
},

vite: {
mode: 'development',
plugins: [
Inspect(),
ViteRequireContext.default({
Expand All @@ -87,6 +87,10 @@ export default defineConfigWithTheme<ThemeConfig>({
...baseCleanup,
]
}),
liveReload([
'../node_modules/@shopware-docs/**/*.*',
'../node_modules/vitepress-shopware-docs/**/*.*',
]),
],
build: {
rollupOptions: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"unocss": "^0.51.12",
"uuid": "^9.0.0",
"vite-plugin-inspect": "^0.7.26",
"vite-plugin-live-reload": "^3.0.2",
"vitest": "^0.31.0",
"vue-instantsearch": "^4.10.0"
},
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f4eee8a

Please sign in to comment.