We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f53ed7b commit 482a195Copy full SHA for 482a195
src/index.js
@@ -68,7 +68,7 @@ const serverStr = `
68
const proxyStr = `
69
proxy: {
70
// eslint-disable-next-line no-useless-escape
71
- '^(.+)\\.php[\\/?#]': 'http://localhost:8000/',
+ '^(.+)\\.php([\\/?#])?': 'http://localhost:8000/',
72
},`
73
if (!viteConfigFileContent.match(regexStartOfServer)) {
74
viteConfigFileContent = viteConfigFileContent.replace(regexStartOfConfig, `$1${serverStr}`)
0 commit comments