We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa4ff82 commit f35f768Copy full SHA for f35f768
packages/@vuepress/bundler-webpack/src/dev/createDevServerConfig.ts
@@ -1,3 +1,4 @@
1
+import { sep } from 'path'
2
import type { WebpackOptionsNormalized } from 'webpack'
3
import * as WebpackDevServer from 'webpack-dev-server'
4
import { App } from '@vuepress/core'
@@ -37,7 +38,8 @@ export const createDevServerConfig = (
37
38
overlay: false,
39
port: app.options.port,
40
static: {
- directory: app.dir.public(),
41
+ // `static.directory` will fail on Windows if we do not replace / with \
42
+ directory: app.dir.public().replace('/', sep),
43
publicPath: app.options.base,
44
watch: {
45
ignoreInitial: true,
0 commit comments