Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue-loader
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pi-plusplus
fork-from-github
vue-loader
Commits
fc5b799c
Commit
fc5b799c
authored
May 24, 2018
by
Jinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[docs][zh] small tweaks
parent
f4084ab4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pre-processors.md
docs/zh/guide/pre-processors.md
+2
-2
migrating.md
docs/zh/migrating.md
+1
-1
No files found.
docs/zh/guide/pre-processors.md
View file @
fc5b799c
...
...
@@ -174,9 +174,9 @@ Babel 的配置可以通过 `.babelrc` 或 `babel-loader` 选项来完成。
### 排除 node_modules
`exclude: /node_modules/`
在
运
用于
`.js`
文件的 JS 转译规则 (例如
`babel-loader`
) 中是蛮常见的。鉴于 v15 中的推导变化,如果你导入一个
`node_modules`
内的 Vue 单文件组件,它的
`<script>`
部分在转译时将会被排除在外。
`exclude: /node_modules/`
在
应
用于
`.js`
文件的 JS 转译规则 (例如
`babel-loader`
) 中是蛮常见的。鉴于 v15 中的推导变化,如果你导入一个
`node_modules`
内的 Vue 单文件组件,它的
`<script>`
部分在转译时将会被排除在外。
为了确保 JS 的转译应用到
`node_modules`
的 Vue 单文件组件,你需要通过
替换使用一个排除函数将其设为
白名单:
为了确保 JS 的转译应用到
`node_modules`
的 Vue 单文件组件,你需要通过
使用一个排除函数将它们加入
白名单:
```
js
{
...
...
docs/zh/migrating.md
View file @
fc5b799c
...
...
@@ -61,7 +61,7 @@ v15 也允许为 loader 使用非序列化的选项,这种选项在之前的
`exclude: /node_modules/`
在运用于
`.js`
文件的 JS 转译规则 (例如
`babel-loader`
) 中是蛮常见的。鉴于 v15 中的推导变化,如果你导入一个
`node_modules`
内的 Vue 单文件组件,它的
`<script>`
部分在转译时将会被排除在外。
为了确保 JS 的转译应用到
`node_modules`
的 Vue 单文件组件,你需要通过
替换使用一个排除函数将其设为
白名单:
为了确保 JS 的转译应用到
`node_modules`
的 Vue 单文件组件,你需要通过
使用一个排除函数将它们加入
白名单:
```
js
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment