File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -296,6 +296,7 @@ const modules = {
296
296
- 该 Glob 模式会被当成导入标识符:必须是相对路径(以 ` ./ ` 开头)或绝对路径(以 ` / ` 开头,相对于项目根目录解析)。
297
297
- Glob 匹配是使用 ` fast-glob ` 来实现的 —— 阅读它的文档来查阅 [ 支持的 Glob 模式] ( https://github.com/mrmlnc/fast-glob#pattern-syntax ) 。
298
298
- 你还需注意,glob 的导入不接受变量,你应直接传递字符串模式。
299
+ - glob 模式不能包含与包裹引号相同的引号字符串(其中包括 ` ' ` ,` " ` ,`` ` `` ),例如,如果你想实现 ` '/Tom\'s files/**' ` 的效果,请使用 ` "/Tom's files/**" ` 代替。
299
300
300
301
## WebAssembly {#webassembly}
301
302
Original file line number Diff line number Diff line change @@ -77,13 +77,8 @@ async function createServer() {
77
77
// 以中间件模式创建 Vite 应用,这将禁用 Vite 自身的 HTML 服务逻辑
78
78
// 并让上级服务器接管控制
79
79
//
80
- <<<<<< < HEAD
81
- // 如果你想使用 Vite 自己的 HTML 服务逻辑(将 Vite 作为
82
- // 一个开发中间件来使用),那么这里请用 'html'
83
- ====== =
84
- // In middleware mode, if you want to use Vite's own HTML serving logic
85
- // use `'html'` as the `middlewareMode` (ref https://vitejs.dev/config/#server-middlewaremode)
86
- >>>>>> > 7ee013df1d23732b3f0f880c414c161ad21657f5
80
+ // 在中间件模式下,如果你想使用 Vite 自带的 HTML 服务
81
+ // 请将 `middlewareMode` 设置为 `'html'` (具体请参考 https://cn.vitejs.dev/config/#server-middlewaremode)
87
82
const vite = await createViteServer ({
88
83
server: { middlewareMode: ' ssr' }
89
84
})
You can’t perform that action at this time.
0 commit comments