mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-07 23:08:39 -06:00
docs: merge branch 'docs' into dev [ci skip]
This commit is contained in:
@@ -103,7 +103,7 @@ For more information, read the [UI Plugin API](../dev-guide/ui-api.md).
|
||||
|
||||
## Presets
|
||||
|
||||
A Vue CLI preset is a JSON object that contains pre-defined options and plugins for creating a new project so that the user don't have to go through the prompts to select them.
|
||||
A Vue CLI preset is a JSON object that contains pre-defined options and plugins for creating a new project so that the user doesn't have to go through the prompts to select them.
|
||||
|
||||
Presets saved during `vue create` are stored in a configuration file in your user home directory (`~/.vuerc`). You can directly edit this file to tweak / add / delete the saved presets.
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ module.exports = {
|
||||
|
||||
## 链式操作 (高级)
|
||||
|
||||
webpack 内部的配置是通过 [webpack-chain](https://github.com/mozilla-neutrino/webpack-chain) 维护的。这个库提供了一个 webpack 原始配置的上层抽象,使其可以定义具名的 loader 规则和具名插件,并有机会在后期进入这些规则并对它们的选项进行修改。
|
||||
Vue CLI 内部的 webpack 配置是通过 [webpack-chain](https://github.com/mozilla-neutrino/webpack-chain) 维护的。这个库提供了一个 webpack 原始配置的上层抽象,使其可以定义具名的 loader 规则和具名插件,并有机会在后期进入这些规则并对它们的选项进行修改。
|
||||
|
||||
它允许我们更细粒度的控制其内部配置。接下来有一些常见的在 `vue.config.js` 中的 `chainWebpack` 修改的例子。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user