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 1ffbf14 commit 43359ccCopy full SHA for 43359cc
src/index.ts
@@ -212,6 +212,12 @@ function resolveLaravelPlugin(pluginConfig: Required<PluginConfig>): LaravelPlug
212
if (isAddressInfo(address)) {
213
viteDevServerUrl = userConfig.server?.origin ? userConfig.server.origin as DevServerUrl : resolveDevServerUrl(address, server.config, userConfig)
214
215
+ const hotFileParentDirectory = path.dirname(pluginConfig.hotFile);
216
+
217
+ if (!fs.existsSync(hotFileParentDirectory)) {
218
+ fs.mkdirSync(hotFileParentDirectory, { recursive: true })
219
+ }
220
221
fs.writeFileSync(pluginConfig.hotFile, `${viteDevServerUrl}${server.config.base.replace(/\/$/, '')}`)
222
223
setTimeout(() => {
0 commit comments