Skip to content

Commit 434357c

Browse files
committed
docs: update configuration example to import plugin from the main entry
1 parent 7af8db4 commit 434357c

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

docs/guide/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Vue Loader's configuration is a bit different from other loaders. In addition to
2626

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

3131
module.exports = {
3232
module: {

docs/migrating.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Vue Loader v15 now requires an accompanying webpack plugin to function properly:
1717

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

2222
module.exports = {
2323
// ...

docs/ru/guide/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ npm install -D vue-loader vue-template-compiler
2626

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

3131
module.exports = {
3232
module: {
@@ -51,7 +51,7 @@ module.exports = {
5151

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

5656
module.exports = {
5757
mode: 'development',

docs/ru/migrating.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Vue Loader v15 теперь для правильной работы требу
1717

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

2222
module.exports = {
2323
// ...

docs/zh/guide/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Vue Loader 的配置和其它的 loader 不太一样。除了通过一条规则
2626

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

3131
module.exports = {
3232
module: {
@@ -51,7 +51,7 @@ module.exports = {
5151

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

5656
module.exports = {
5757
mode: 'development',

docs/zh/migrating.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Vue Loader v15 现在需要配合一个 webpack 插件才能正确使用:
1717

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

2222
module.exports = {
2323
// ...

0 commit comments

Comments
 (0)