Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: [RU] Translation update (#4917)
* docs: (ru) config/README.md update devServer example * docs: (ru) creating-a-project.md update * docs: css.md add less examples * docs: browser-compatibility.md update * docs: deployment.md update * docs: (ru) config/readme.md update * docs: (ru) deployment.md update * docs: (ru) prototyping.md add yarn command * docs: config.md fix * docs: ui-localization.md typo * docs: [RU] Translation update * docs: [RU] Translation update * docs: vuex.md added * docs: router.md added * docs: migration from v3 added * docs: config.js updated * docs: config/readme.md updated * docs: unit-mocha.md updated * docs: css.md updated * docs: cli-service.md updated * docs: generator-api.md updated * docs: build-target.md update * docs: deployment.md update * docs: e2e-nightwatch.md update * docs: unit-jest.md update * docs: e2e-nightwatch.md update * docs: migrating-from-v3.md update * docs: plugin-dev.md update * docs: plugin-dev.md update * docs: plugin-dev.md update * docs: plugin-dev.md update
- Loading branch information
1 parent
c7961cd
commit 02f2436
Showing
33 changed files
with
2,570 additions
and
401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Плагины | ||
|
||
Vue CLI использует архитектуру на основе плагинов. Если изучить `package.json` в только что созданном проекте, можно обнаружить зависимости, которые начинаются с `@vue/cli-plugin-`. Плагины могут модифицировать внутреннюю конфигурацию webpack и внедрять команды в `vue-cli-service`. Большинство возможностей, перечисленных в процессе создания проекта, реализованы в виде плагинов. | ||
|
||
Этот раздел содержит документацию для основных плагинов Vue CLI: | ||
|
||
- [Babel](babel.md) | ||
- [TypeScript](typescript.md) | ||
- [ESLint](eslint.md) | ||
- [PWA](pwa.md) | ||
- [Jest](unit-jest.md) | ||
- [Mocha](unit-mocha.md) | ||
- [Cypress](e2e-cypress.md) | ||
- [Nightwatch](e2e-nightwatch.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# @vue/cli-plugin-babel | ||
|
||
> Плагин babel для vue-cli | ||
## Конфигурация | ||
|
||
По умолчанию используется Babel 7 + `babel-loader` + [@vue/babel-preset-app](https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/babel-preset-app), но есть возможность конфигурации через `babel.config.js` для использования любых других пресетов Babel или плагинов. | ||
|
||
По умолчанию `babel-loader` исключает файлы внутри зависимостей из `node_modules`. Если вы хотите явно транспилировать модуль какой-то зависимости, необходимо указать его в опции `transpileDependencies` в файле `vue.config.js`: | ||
|
||
```js | ||
module.exports = { | ||
transpileDependencies: [ | ||
// может быть строкой или regex | ||
'my-dep', | ||
/other-dep/ | ||
] | ||
} | ||
``` | ||
|
||
## Кэширование | ||
|
||
[cache-loader](https://github.com/webpack-contrib/cache-loader) используется по умолчанию, кэш хранится в `<projectRoot>/node_modules/.cache/babel-loader`. | ||
|
||
## Параллелизация | ||
|
||
[thread-loader](https://github.com/webpack-contrib/thread-loader) используется по умолчанию, если машина имеет более 1 ядра CPU. Это можно отключить указав `parallel: false` в файле `vue.config.js`. | ||
|
||
## Установка в уже созданный проект | ||
|
||
```sh | ||
vue add babel | ||
``` | ||
|
||
## Внедряемые правила webpack-chain | ||
|
||
- `config.rule('js')` | ||
- `config.rule('js').use('babel-loader')` | ||
- `config.rule('js').use('cache-loader')` |
Oops, something went wrong.