Skip to content

Commit a729c2e

Browse files
committed
docs: add some tips
1 parent 818d8e7 commit a729c2e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Diff for: docs/options.md

+4
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,7 @@ Compiled the component for usage inside Shadow DOM. In this mode, the styles of
8181
- default: `undefined`
8282

8383
When both options are specified, enables file-system-based template compilation caching (requires `cache-loader` to be installed in the same project).
84+
85+
::: tip
86+
Interaction between `vue-loader` and `cache-loader` uses [inline loader import syntax](https://webpack.js.org/concepts/loaders/#inline) under the hook, the `!` will be treated as the separator between different loaders, so please ensure `cacheDirectory` doesn't contain `!`.
87+
:::

Diff for: docs/zh/options.md

+4
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,7 @@ sidebar: auto
8181
- 默认值:`undefined`
8282

8383
当这两个选项同时被设置时,开启基于文件系统的模板编译缓存 (需要在工程里安装 `cache-loader`)。
84+
85+
::: tip 注意
86+
在内部,`vue-loader``cache-loader` 之间的交互使用了 [loader 的内联 import 语法](https://webpack.js.org/concepts/loaders/#inline)`!` 将会被认为是不同 loaders 之间的分隔符,所以请确保你的 `cacheDirectory` 路径中不包含 `!`
87+
:::

0 commit comments

Comments
 (0)