Skip to content

Commit

Permalink
docs: 文档中删除了dll功能, #5423
Browse files Browse the repository at this point in the history
  • Loading branch information
Littly authored and luckyadam committed Feb 9, 2020
1 parent e8937aa commit d8d83c7
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions docs/config-detail.md
Original file line number Diff line number Diff line change
Expand Up @@ -695,30 +695,6 @@ dev 状态默认 **开**,prod 状态默认 **关**。
### h5.sourceMapType
sourceMap格式, 默认cheap-module-eval-source-map。[具体配置](https://webpack.js.org/configuration/devtool/#devtool)

### h5.enableDll

dll 开关,开启后将使用 `dllPlugin` 把内置的部分依赖库打包为单独的 dll 文件,
某种程度上可以减少首屏单个文件体积。
dev 状态默认 ****,prod 状态默认 ****

### h5.dllWebpackChain

`h5.webpackChain`,不过作用于 dll。

### h5.dllEntry

dll编译过程的 `entry` 配置项,决定了 dll 文件的内容,可参考 [webpack.entry](https://webpack.js.org/configuration/entry-context/#entry)。默认值:

```js
h5: {
/* 其他配置 */
...,
dllEntry: {
lib: ['nervjs', '@tarojs/taro-h5', '@tarojs/router', '@tarojs/components']
}
}
```

### h5.enableExtract

extract 功能开关,开启后将使用 `mini-css-extract-plugin` 分离 css 文件,
Expand Down

0 comments on commit d8d83c7

Please sign in to comment.