Skip to content

Commit

Permalink
docs: update configuration example to import plugin from the main entry
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Mar 4, 2021
1 parent 7af8db4 commit 434357c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Vue Loader's configuration is a bit different from other loaders. In addition to

``` js
// webpack.config.js
const VueLoaderPlugin = require('vue-loader/lib/plugin')
const { VueLoaderPlugin } = require('vue-loader')

module.exports = {
module: {
Expand Down
2 changes: 1 addition & 1 deletion docs/migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Vue Loader v15 now requires an accompanying webpack plugin to function properly:

``` js
// webpack.config.js
const VueLoaderPlugin = require('vue-loader/lib/plugin')
const { VueLoaderPlugin } = require('vue-loader')

module.exports = {
// ...
Expand Down
4 changes: 2 additions & 2 deletions docs/ru/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ npm install -D vue-loader vue-template-compiler

``` js
// webpack.config.js
const VueLoaderPlugin = require('vue-loader/lib/plugin')
const { VueLoaderPlugin } = require('vue-loader')

module.exports = {
module: {
Expand All @@ -51,7 +51,7 @@ module.exports = {

``` js
// webpack.config.js
const VueLoaderPlugin = require('vue-loader/lib/plugin')
const { VueLoaderPlugin } = require('vue-loader')

module.exports = {
mode: 'development',
Expand Down
2 changes: 1 addition & 1 deletion docs/ru/migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Vue Loader v15 теперь для правильной работы требу

``` js
// webpack.config.js
const VueLoaderPlugin = require('vue-loader/lib/plugin')
const { VueLoaderPlugin } = require('vue-loader')

module.exports = {
// ...
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Vue Loader 的配置和其它的 loader 不太一样。除了通过一条规则

``` js
// webpack.config.js
const VueLoaderPlugin = require('vue-loader/lib/plugin')
const { VueLoaderPlugin } = require('vue-loader')

module.exports = {
module: {
Expand All @@ -51,7 +51,7 @@ module.exports = {

``` js
// webpack.config.js
const VueLoaderPlugin = require('vue-loader/lib/plugin')
const { VueLoaderPlugin } = require('vue-loader')

module.exports = {
mode: 'development',
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Vue Loader v15 现在需要配合一个 webpack 插件才能正确使用:

``` js
// webpack.config.js
const VueLoaderPlugin = require('vue-loader/lib/plugin')
const { VueLoaderPlugin } = require('vue-loader')

module.exports = {
// ...
Expand Down

0 comments on commit 434357c

Please sign in to comment.