Skip to content

Commit

Permalink
feat(devtools): support custom server origin (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi authored Oct 9, 2021
1 parent ff1509b commit 43a1ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite-plugin-windicss/src/devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ document.head.prepend(style)
`import('${MOCK_CLASSES_MODULE_ID}')`,
]
.join('\n')
.replace('__POST_PATH__', POST_PATH)
.replace('__POST_PATH__', (config.server?.origin ?? '') + POST_PATH)
}
return config.command === 'build'
? ''
Expand Down

0 comments on commit 43a1ed4

Please sign in to comment.