Skip to content

Commit 83c535b

Browse files
author
TW-IT-Jerry Liu
committed
chore: mark livereload as optional for php
1 parent ed3b65d commit 83c535b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

vite.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@ import react from '@vitejs/plugin-react'
22
import tsconfigPaths from 'vite-tsconfig-paths'
33
import alias from '@rollup/plugin-alias'
44
import path from 'path'
5-
import liveReload from 'vite-plugin-live-reload'
5+
6+
// import liveReload from 'vite-plugin-live-reload'
7+
68
import { v4wp } from '@kucrut/vite-for-wp'
79

810
export default {
911
plugins: [
1012
alias(),
1113
react(),
1214
tsconfigPaths(),
13-
liveReload(__dirname + '/**/*.php'),
15+
16+
// liveReload(__dirname + '/**/*.php'), // Optional, if you want to reload page on php changed
17+
1418
v4wp({
1519
input: 'js/src/main.tsx', // Optional, defaults to 'src/main.js'.
1620
outDir: 'js/dist', // Optional, defaults to 'dist'.

0 commit comments

Comments
 (0)