Skip to content

Commit ecd66a5

Browse files
committed
docs: use less confusing plugin require
1 parent 0e5aac7 commit ecd66a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: docs/guide/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Vue Loader's configuration is a bit different form other loaders. In addition to
1212

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

1717
module.exports = {
1818
module: {
@@ -38,7 +38,7 @@ A more complete example webpack config will look like this:
3838
``` js
3939
// webpack.config.js
4040
const path = require('path')
41-
const { VueLoaderPlugin } = require('vue-loader')
41+
const VueLoaderPlugin = require('vue-loader/lib/plugin')
4242

4343
module.exports = {
4444
mode: 'development',

Diff for: 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')
20+
const VueLoaderPlugin = require('vue-loader/lib/plugin')
2121

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

0 commit comments

Comments
 (0)